Skip to main content

suix_getOwnedObjects RPC Method

Return the list of objects owned by an address.

Updated on
Dec 10, 2024

suix_getOwnedObjects RPC Method

Parameters

address
string
REQUIRED
The owner's Sui address
query
object
REQUIRED
The objects query criteria. To know more visit here: https://docs.sui.io/sui-api-ref#objectresponsequery
cursor
string
An optional paging cursor. If provided, the query will start from the next item after the specified cursor. Default to start from the first item if not specified
limit
integer
Maximum number of items per page, default to [QUERY_MAX_RESULT_LIMIT] if not specified

Returns

result
object
The result object which contains information about the query results and pagination details
data
array
An array containing individual data objects retrieved by the query
data
object
A single data object providing details about a specific record
objectId
string
The unique identifier for the object
version
string
The version of the object, indicating its state or revision
digest
string
A unique hash or checksum for the object, used for data integrity verification
type
string
The type of the object, specifying its category or classification
owner
object
Details about the ownership of the object
AddressOwner
string
The address of the owner of the object
previousTransaction
string
The identifier of the transaction that previously modified this object
storageRebate
string
The rebate amount related to the storage cost of this object
nextCursor
string
The cursor value to be used for fetching the next page of data
hasNextPage
boolean
Indicates whether there are more pages of data available
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": "suix_getOwnedObjects",
7
"params": [
8
"0x00878369f475a454939af7b84cdd981515b1329f159a1aeb9bf0f8899e00083a",
9
{
10
"filter": {
11
"MatchAll": [
12
{
13
"StructType": "0x2::coin::Coin<0x2::sui::SUI>"
14
},
15
{
16
"AddressOwner": "0x0cd4bb4d4f520fe9bbf0cf1cebe3f2549412826c3c9261bff9786c240123749f"
17
},
18
{
19
"Version": "13488"
20
}
21
]
22
},
23
"options": {
24
"showType": true,
25
"showOwner": true,
26
"showPreviousTransaction": true,
27
"showDisplay": false,
28
"showContent": false,
29
"showBcs": false,
30
"showStorageRebate": false
31
}
32
}
33
]
34
}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free