sui_getAllCoins
Return all Coin objects owned by an address.
owner
:<SuiAddress>
- the owner's Sui addresscursor
:<ObjectID>
- optional paging cursorlimit
:<uint>
- maximum number of items per page
CoinPage
: <Page_for_Coin_and_ObjectID>
Request
curl
--location --request POST 'https://sui-devnet.blastapi.io/<project_id>' \
--header 'Content-Type: application/json' \
--data-raw '{
"jsonrpc": "2.0",
"id": 1,
"method": "sui_getAllCoins",
"params": [
"0x30dab78d58471a78496eb71c2c6e77ba268f0390",
"0x0565c8ab528283c0ecd49e315d4f9139f4a0a80a",
3
]
}'
Result
{
"jsonrpc": "2.0",
"result": {
"data": [
{
"coinType": "0x2::sui::SUI",
"coinObjectId": "0x0565c8ab528283c0ecd49e315d4f9139f4a0a80a",
"version": 10361,
"digest": "ZXJ9HQ5jhiLPOth20CVrn4/1zC3sf7PBKhMspOSGPUY=",
"balance": 10000000
},
{
"coinType": "0x2::sui::SUI",
"coinObjectId": "0x0b5d71565cc8e54598ad225a092f1cf0505c25c4",
"version": 10361,
"digest": "iYc2wd1gi0zSgHw1GvJMOM3lsnHHc5xSykR5qO0FzOc=",
"balance": 10000000
},
{
"coinType": "0x2::sui::SUI",
"coinObjectId": "0x3430a78d4bc9d830f1c14e068a0541108106f52d",
"version": 10361,
"digest": "F1Ur5PbyqS3hKyuRS8JQvCSCNkUFV6dTDmJfKMJ4baU=",
"balance": 10000000
}
],
"nextCursor": "0x3d798ce405b26c93d86ca888a4e898a3d187cbf4"
},
"id": 1
}
Last modified 2mo ago