Skip to main content

sui_tryGetPastObject RPC Method

Return the object information for a specified version.

Updated on
Dec 10, 2024

sui_tryGetPastObject RPC Method

Parameters

object_id
string
REQUIRED
The IDs of the queried object
version
integer
REQUIRED
The version of the queried object. If None, default to the latest known version
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
object
Contains the status and details of the version lookup
status
string
Indicates the status of the version lookup (e.g., 'VersionFound')
details
object
Details of the versioned object
objectId
string
Unique identifier of the object
version
string
Version of the object
digest
string
Digest of the object
type
string
Type of the object (e.g., Move object)
owner
object
Ownership information of the object
AddressOwner
string
Address of the owner
previousTransaction
string
Digest of the previous transaction associated with the object
storageRebate
string
Storage rebate value associated with the object
content
object
Content details of the object
dataType
string
Type of the data (e.g., 'moveObject')
type
string
Specific type of the Move object
hasPublicTransfer
boolean
Indicates if the object has public transfer enabled
fields
object
Fields of the Move object
id
object
ID field of the object
id
string
Unique identifier for the ID field
owner
string
Owner field of the object
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_tryGetPastObject",
7
"params": [
8
"0x704c8c0d8052be7b5ca7174222a8980fb2ad3cd640f4482f931deb6436902627",
9
39221891,
10
{
11
"showType": true,
12
"showOwner": true,
13
"showPreviousTransaction": true,
14
"showDisplay": false,
15
"showContent": true,
16
"showBcs": false,
17
"showStorageRebate": true
18
}
19
]
20
}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free