sui_multiGetObjects

Read API

Return the object data for a list of objects

Parameters

KeyRequiredTypeDetail
object_idsList of ObjectIDthe IDs of the queried objects
optionsObjectDataOptionsoptions for specifying the content to be returned
"params": [
  [
    "0x2d297fa94fc0f5119361161dd6d1a5c470230129ac8bf28f684d207dfa4674cf",
    "0x7191aedb86aaa77a0156731f1235a91b70e99be5513c8a15193a8976f46e0989"
  ],
  {
    "showType": true,
    "showOwner": true,
    "showPreviousTransaction": true,
    "showDisplay": false,
    "showContent": true,
    "showBcs": false,
    "showStorageRebate": true
  }
]

Result

Vec<SuiObjectResponse> : <[SuiObjectResponse]>

Example

Request

curl <your-endpoint> \
    -X POST \
    -H "Content-Type: application/json" \
    -d '
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "sui_multiGetObjects",
  "params": [
    [
      "0x2d297fa94fc0f5119361161dd6d1a5c470230129ac8bf28f684d207dfa4674cf",
      "0x7191aedb86aaa77a0156731f1235a91b70e99be5513c8a15193a8976f46e0989"
    ],
    {
      "showType": true,
      "showOwner": true,
      "showPreviousTransaction": true,
      "showDisplay": false,
      "showContent": true,
      "showBcs": false,
      "showStorageRebate": true
    }
  ]
}
'

Response

{
    "jsonrpc": "2.0",
    "result": [
        {
            "data": {
                "objectId": "0x2d297fa94fc0f5119361161dd6d1a5c470230129ac8bf28f684d207dfa4674cf",
                "version": "2542811",
                "digest": "HZH3fR6HKh2GehC3HTAghf8UGBiKZG4TZZXZkUr7FYD4",
                "type": "0x2::coin::Coin<0x2::sui::SUI>",
                "owner": {
                    "AddressOwner": "0x3c37435eea6c3c55af579dd345c0fa6fae136892c183fb0b99f84834d451a3d9"
                },
                "previousTransaction": "DfD6XFfNgLQjwKYVuR6yoxusKchShuCA3udpAyHY8fv2",
                "storageRebate": "988000",
                "content": {
                    "dataType": "moveObject",
                    "type": "0x2::coin::Coin<0x2::sui::SUI>",
                    "hasPublicTransfer": true,
                    "fields": {
                        "balance": "6609302122",
                        "id": {
                            "id": "0x2d297fa94fc0f5119361161dd6d1a5c470230129ac8bf28f684d207dfa4674cf"
                        }
                    }
                }
            }
        },
        {
            "data": {
                "objectId": "0x7191aedb86aaa77a0156731f1235a91b70e99be5513c8a15193a8976f46e0989",
                "version": "2293108",
                "digest": "HDnu8UyB7p9RFXGL9Qvsj7tQyFYsbYstmCzffwBWXMFp",
                "type": "0x361dd589b98e8fcda9a7ee53b85efabef3569d00416640d2faa516e3801d7ffc::pool::PoolLsp<0x2::sui::SUI, 0x5d4b302506645c37ff133b98c4b50a5ae14841659738d6d733d59d0d217a93bf::coin::COIN>",
                "owner": {
                    "AddressOwner": "0x3c37435eea6c3c55af579dd345c0fa6fae136892c183fb0b99f84834d451a3d9"
                },
                "previousTransaction": "3eSB2bsyEd9rdibwukq1E8VKBbpWjY6fTY1mPyYAP3mu",
                "storageRebate": "3085600",
                "content": {
                    "dataType": "moveObject",
                    "type": "0x361dd589b98e8fcda9a7ee53b85efabef3569d00416640d2faa516e3801d7ffc::pool::PoolLsp<0x2::sui::SUI, 0x5d4b302506645c37ff133b98c4b50a5ae14841659738d6d733d59d0d217a93bf::coin::COIN>",
                    "hasPublicTransfer": false,
                    "fields": {
                        "boost_multiplier": "14",
                        "end_epoch": "19609",
                        "id": {
                            "id": "0x7191aedb86aaa77a0156731f1235a91b70e99be5513c8a15193a8976f46e0989"
                        },
                        "pool_id": "0xddb2164a724d13690e347e9078d4234c9205b396633dfc6b859b09b61bbcd257",
                        "pool_lsp": "770412006105",
                        "pool_mining_ampt": {
                            "type": "0x361dd589b98e8fcda9a7ee53b85efabef3569d00416640d2faa516e3801d7ffc::vpt::ValuePerToken",
                            "fields": {
                                "amount": "11077062754464",
                                "sum": "0"
                            }
                        },
                        "pool_x": "26820911139798",
                        "pool_y": "27778187145",
                        "start_epoch": "19489",
                        "value": "8495542999"
                    }
                }
            }
        }
    ],
    "id": 1
}
Language
Click Try It! to start a request and see the response here!