suix_getAllCoins
Return all Coin objects owned by an address.
Return all Coin objects owned by an address.
Parameters
owner
:<SuiAddress>
- the owner's Sui addresscursor
:<ObjectID>
- optional paging cursorlimit
:<uint>
- maximum number of items per page
Returns
CoinPage
: <Page_for_Coin_and_ObjectID>
Example Request and Result for suix_getAllCoins
Request
curl --location 'https://sui-testnet.blastapi.io/<project-id>' \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"id": 1,
"method": "suix_getAllCoins",
"params": [
"0xe883a1df96561884e46d8e29cfb4e127bb6fd2719c33af1c16239a25a469e0a6",
"0x1c574d9f2db5f293a799cc82795486aa8ce2962f831c7c6a433cbdcd84639acb",
3
]
}'
Result
{
"jsonrpc": "2.0",
"result": {
"data": [
{
"coinType": "0x2::sui::SUI",
"coinObjectId": "0xb770280feece9abe5f4683ee9a1b5baa76e3426d3dd46e9e17ae45a294d8a486",
"version": "2960614",
"digest": "CwcAqcZsw9toDkJjg2WjUvdY5U8o914CwzbTSUeEgPRR",
"balance": "1000000000",
"lockedUntilEpoch": null,
"previousTransaction": "DsYAh2efV1nD4UuEQXMeicPBgeYD4UbQSDpLg9mKTMzc"
}
],
"nextCursor": "0xb770280feece9abe5f4683ee9a1b5baa76e3426d3dd46e9e17ae45a294d8a486",
"hasNextPage": false
},
"id": 1
}