sui_multiGetObjects

Return the object data for a list of objects

Parameters

  • object_ids : <[ObjectID]> - the IDs of the queried objects

  • options : <ObjectDataOptions> - options for specifying the content to be returned

Returns

  • Vec<SuiObjectResponse> : <[SuiObjectResponse]>

Example Request and Result for sui_multiGetObjects

Request

curl --location 'https://sui-testnet.blastapi.io/<project-id>' \
--header 'Content-Type: application/json' \
--data '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "sui_multiGetObjects",
  "params": [
    ["0x125d701cc584f5aba71a1f73c52b0ef08493f1ac9801e8e6d9f0f5c1cc1bcfc4"],
    {
      "showInput": true,
      "showRawInput": false,
      "showEffects": true,
      "showEvents": true,
      "showObjectChanges": false,
      "showBalanceChanges": false
    }
  ]
}'

Result:

{
    "jsonrpc": "2.0",
    "result": [
        {
            "data": {
                "objectId": "0x125d701cc584f5aba71a1f73c52b0ef08493f1ac9801e8e6d9f0f5c1cc1bcfc4",
                "version": "8241435",
                "digest": "FkzYC7YoJZ1jDHszxVYeSYoqss5jkHwrCmWXcLhq4y5W"
            }
        }
    ],
    "id": 1
}

Last updated