sui_multiGetObjects
Return the object data for a list of objects
Parameters
object_ids·ObjectID[] · requiredthe IDs of the queried objectsoptions·ObjectDataOptions· optionaloptions for specifying the content to be returnedshowBcs·boolean· optionalWhether to show the content in BCS format. Default to be FalseshowContent·boolean· optionalWhether to show the content(i.e., package content or Move struct content) of the object. Default to be FalseshowDisplay·boolean· optionalWhether to show the Display metadata of the object for frontend rendering. Default to be FalseshowOwner·boolean· optionalWhether to show the owner of the object. Default to be FalseshowPreviousTransaction·boolean· optionalWhether to show the previous transaction digest of the object. Default to be FalseshowStorageRebate·boolean· optionalWhether to show the storage rebate of the object. Default to be FalseshowType·boolean· optionalWhether to show the type of the object. Default to be False
Result
Vec<SuiObjectResponse>·SuiObjectResponse[]
Example
Request
bash
curl https://mainnet-api.inodra.com/v1/jsonrpc \
-H 'Content-Type: application/json' \
-H 'x-api-key: YOUR_API_KEY' \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "sui_multiGetObjects",
"params": [
[
"0x77b3482580ee8d5bdc5b824808df54bfec4fc817622e5add0e48f749f01def98",
"0x9060d87664c26a3f9a509228c21b16dc6797cf787c839a07edc03e6338421091",
"0xb37379c527753c5c8ab783f697e7b61439368cd75ebe63d633af32ffb4a022d1",
"0xee309e94ff5c9f6b02c5637f018f6ea7bed8f6c3d80f2a595c2305e12dd6d07c",
"0x29bc7c8d230db3b417edb1184cf075da5e934f672d3da3e003d989075efaecc7"
],
{
"showType": true,
"showOwner": true,
"showPreviousTransaction": true,
"showDisplay": false,
"showContent": true,
"showBcs": false,
"showStorageRebate": true
}
]
}'Response
json
{
"jsonrpc": "2.0",
"id": 1,
"result": [
{
"data": {
"objectId": "0x77b3482580ee8d5bdc5b824808df54bfec4fc817622e5add0e48f749f01def98",
"version": "1",
"digest": "2QwXW3qzMEZPAyyP9VHtXbC2tp7iomypQc5XnkyPsu5d",
"type": "0x2::coin::Coin<0x2::sui::SUI>",
"owner": {
"AddressOwner": "0x504d411325e3c7f89d412044fe99007efb0f94f1e64d2e8090c619a39299d87e"
},
"previousTransaction": "GcjpL3GJBoiqc7RNwfV1R4411dFPYz4hTNyXQchsq6Sa",
"storageRebate": "100",
"content": {
"dataType": "moveObject",
"type": "0x2::coin::Coin<0x2::sui::SUI>",
"hasPublicTransfer": true,
"fields": {
"balance": "100000000",
"id": {
"id": "0x77b3482580ee8d5bdc5b824808df54bfec4fc817622e5add0e48f749f01def98"
}
}
}
}
},
{
"data": {
"objectId": "0x9060d87664c26a3f9a509228c21b16dc6797cf787c839a07edc03e6338421091",
"version": "1",
"digest": "5itvhMFvtJcV6fY2VY4x7F9Ex18q2N4Rr5WU4FXTJsFU",
"type": "0x2::coin::Coin<0x2::sui::SUI>",
"owner": {
"AddressOwner": "0x23618df6438d21a48040e6bb568cafc13246bd847c60448160e0358cac4a1134"
},
"previousTransaction": "6m5GPm6XurdzRcEBd7epcnn4rDv8s3fVUK7dN6vYiYk8",
"storageRebate": "100",
"content": {
"dataType": "moveObject",
"type": "0x2::coin::Coin<0x2::sui::SUI>",
"hasPublicTransfer": true,
"fields": {
"balance": "100000000",
"id": {
"id": "0x9060d87664c26a3f9a509228c21b16dc6797cf787c839a07edc03e6338421091"
}
}
}
}
},
{
"data": {
"objectId": "0xb37379c527753c5c8ab783f697e7b61439368cd75ebe63d633af32ffb4a022d1",
"version": "1",
"digest": "8rsTRNPs13DZvD2xneZEtf2nAAipep6uHXPXWVXfzDBr",
"type": "0x2::coin::Coin<0x2::sui::SUI>",
"owner": {
"AddressOwner": "0x8b95b4eaa9fd3b22b43f6b2c8e92090bd6d16522a6fd4fa83ec70a5f197ad656"
},
"previousTransaction": "FgEJG8uwH2z3e5e4d2QGeVDYH5tdhbR3vKyXsXWf2zqY",
"storageRebate": "100",
"content": {
"dataType": "moveObject",
"type": "0x2::coin::Coin<0x2::sui::SUI>",
"hasPublicTransfer": true,
"fields": {
"balance": "100000000",
"id": {
"id": "0xb37379c527753c5c8ab783f697e7b61439368cd75ebe63d633af32ffb4a022d1"
}
}
}
}
},
{
"data": {
"objectId": "0xee309e94ff5c9f6b02c5637f018f6ea7bed8f6c3d80f2a595c2305e12dd6d07c",
"version": "1",
"digest": "3w6ars2tmgBST4ozGxPWzSpEGyn4AdxMBv3K9sdkCWfR",
"type": "0x2::coin::Coin<0x2::sui::SUI>",
"owner": {
"AddressOwner": "0x3fbbd3ebef7dbcc7b02346cdf05674452cc61f316af5d5d7c02b94b023242685"
},
"previousTransaction": "13Y8Ukebq34DkeL6dKEdr6ySSzeRMUpqhQXtZC9KmtTQ",
"storageRebate": "100",
"content": {
"dataType": "moveObject",
"type": "0x2::coin::Coin<0x2::sui::SUI>",
"hasPublicTransfer": true,
"fields": {
"balance": "100000000",
"id": {
"id": "0xee309e94ff5c9f6b02c5637f018f6ea7bed8f6c3d80f2a595c2305e12dd6d07c"
}
}
}
}
},
{
"data": {
"objectId": "0x29bc7c8d230db3b417edb1184cf075da5e934f672d3da3e003d989075efaecc7",
"version": "1",
"digest": "BE9GoMd7Mr8fGte3EdsXxUMwYjcErW71n6Gsm4iPvDmv",
"type": "0x2::coin::Coin<0x2::sui::SUI>",
"owner": {
"AddressOwner": "0x9b5cd5df0df2a168259b7115a41ccc0a372b6fd0026e0c63043492ce4d0c19a6"
},
"previousTransaction": "5CxnSSi2hCEo7beFke1fCp23W1rCKKRfPJrAELCpxiHc",
"storageRebate": "100",
"content": {
"dataType": "moveObject",
"type": "0x2::coin::Coin<0x2::sui::SUI>",
"hasPublicTransfer": true,
"fields": {
"balance": "100000000",
"id": {
"id": "0x29bc7c8d230db3b417edb1184cf075da5e934f672d3da3e003d989075efaecc7"
}
}
}
}
}
]
}