Skip to main content

Parameters

chainId
string
default:"sui"
required
Unique identifier for a blockchain network.
id
number
default:1
required
Request identifier used to match responses.
jsonrpc
string
default:"2.0"
required
JSON-RPC version.
method
string
default:"suix_getOwnedObjects"
required
JSON-RPC method name.
params
object
required
Parameters for suix_getOwnedObjects: [address, query, cursor, limit]. Only the address is required; query, cursor, and limit are optional.Positional parameters for suix_getOwnedObjects:
  • params[0]: The owner’s Sui address.
  • params[1]: Optional objects query criteria.
  • params[2]: Optional paging cursor. If provided, the query will start from the next item after the specified cursor. If not provided, paging starts from the first item.
  • params[3]: Maximum number of items returned per page. Defaults to QUERY_MAX_RESULT_LIMIT if not specified.

Returns

result
object
Response object for suix_getOwnedObjects. Contains a page of SuiObjectResponse objects and pagination info.
curl --request POST \
  --url https://api.uniblock.dev/uni/v1/json-rpc?chainId=sui \
  --header 'content-type: application/json' \
  --data '{
    "id": 1,
    "jsonrpc": "2.0",
    "method": "suix_getOwnedObjects",
    "params": [
      "0xdbc9abc01a87906b033a75750e741edb2df5ea5d55c96a611371d22799d26827",
      {
        "filter": {
          "MatchAll": [
            {
              "StructType": "0x2::coin::Coin<0x2::sui::SUI>"
            },
            {
              "AddressOwner": "0xdbc9abc01a87906b033a75750e741edb2df5ea5d55c96a611371d22799d26827"
            },
            {
              "Version": "13488"
            }
          ]
        },
        "options": {
          "showType": true,
          "showOwner": true,
          "showPreviousTransaction": true,
          "showDisplay": false,
          "showContent": false,
          "showBcs": false,
          "showStorageRebate": false
        }
      },
      "0x0cd4bb4d4f520fe9bbf0cf1cebe3f2549412826c3c9261bff9786c240123749f",
      3
    ]
  }'
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "data": [
      {
        "data": {
          "__truncated": true
        }
      },
      {
        "data": {
          "__truncated": true
        }
      },
      {
        "data": {
          "__truncated": true
        }
      }
    ],
    "nextCursor": "0xe26860fac6839ce2d7ed7e6f29d276a1b4c23f2d9a9b6f0d8b2c17beace292b7",
    "hasNextPage": true
  }
}