Skip to main content

sui_multiGetObjects RPC Method

Return the object data for a list of objects.

Updated on
Dec 10, 2024

sui_multiGetObjects RPC Method

Parameters

object_id
array
REQUIRED
The array of IDs of the queried objects
ObjectDataOptions
object
(Optional) The settings to configure the details returned for an object
showBcs
boolean
Whether to show the content in BCS format. Default is false
showContent
boolean
Whether to show the content (e.g., package content or Move struct content) of the object. Default is false
showDisplay
boolean
Whether to show the Display metadata of the object for frontend rendering. Default is false
showOwner
boolean
Whether to show the owner of the object. Default is false
showPreviousTransaction
boolean
Whether to show the previous transaction digest of the object. Default is false
showStorageRebate
boolean
Whether to show the storage rebate of the object. Default is false
showType
boolean
Whether to show the type of the object. Default is false

Returns

result
array
An array containing the result objects with data details
data
object
Contains information about the object and its metadata
objectId
string
The unique identifier of the object
version
string
The version of the object
digest
string
The digest associated with the object
type
string
The type of the object
owner
object
Details of the owner of the object
AddressOwner
string
The address of the owner
previousTransaction
string
The digest of the previous transaction associated with the object
storageRebate
string
The rebate amount for storage associated with the object
content
object
Details about the object's content
dataType
string
The data type of the content (e.g., moveObject)
type
string
The type of the content object
hasPublicTransfer
boolean
Indicates if the object has public transfer capabilities
fields
object
The fields associated with the content
id
object
The unique identifier field
id
string
The ID of the field
owner
string
The owner field of the content
Request
1
curl --location 'https://docs-demo.sui-mainnet.quiknode.pro/' \
2
--header 'Content-Type: application/json' \
3
--data '{
4
"jsonrpc": "2.0",
5
"id": 1,
6
"method": "sui_multiGetObjects",
7
"params": [
8
[
9
"0x704c8c0d8052be7b5ca7174222a8980fb2ad3cd640f4482f931deb6436902627"
10
],
11
{
12
"showType": true,
13
"showOwner": true,
14
"showPreviousTransaction": true,
15
"showDisplay": false,
16
"showContent": true,
17
"showBcs": false,
18
"showStorageRebate": true
19
}
20
]
21
}
22
'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free