Skip to main content

suix_getDynamicFields

Return the list of dynamic field objects owned by an object.

Return the list of dynamic field objects owned by an object.

Parameters

  • parent_object_id : <ObjectID> - The ID of the parent object
  • cursor : <ObjectID> - 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 : <uint> - Maximum item returned per page, default to [QUERY_MAX_RESULT_LIMIT] if not specified.

Returns

DynamicFieldPage : <Page_for_DynamicFieldInfo_and_ObjectID>

Example Request and Result for suix_getDynamicFields

Request

curl --location 'https://sui-testnet.blastapi.io/<project-id>' \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"id": 1,
"method": "suix_getDynamicFields",
"params": [
"0xb3ba434a82d446c530044680cc4679eb59252e50e4435eddf7f6b959f39a4f7d",
"0xba483c73a9b79bcc592cc5f163465ff1bc5c5d2e",
2
]
}'

Result:

{
"jsonrpc": "2.0",
"result": {
"data": [
{
"name": {
"type": "0x3dcfc5338d8358450b145629c985a9d6cb20f9c0ab6667e328e152cdfd8022cd::capy_labs::LastEpochMixedKey",
"value": {
"dummy_field": false
}
},
"bcsName": "1",
"type": "DynamicField",
"objectType": "u64",
"objectId": "0x9862ed45723ed1f6776628585e2acd5a2263441a2798d05ebe9d13e8a42a3d6c",
"version": 10474932,
"digest": "7gT9Q1x3vcuCESuzBu9cNHcrFSeGzskr9GPya2MAzLg8"
}
],
"nextCursor": "0x9862ed45723ed1f6776628585e2acd5a2263441a2798d05ebe9d13e8a42a3d6c",
"hasNextPage": false
},
"id": 1
}