Skip to main content

suix_getAllBalances

Return the total coin balance for all coin type, owned by the address owner.

Return the total coin balance for all coin type, owned by the address owner.

Parameters

owner : <SuiAddress> - the owner's Sui address

Returns

Vec<Balance> : <[Balance]>

Example Request and Result for suix_getAllBalances

Request

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

Result

{
"jsonrpc": "2.0",
"result": [
{
"coinType": "0x2::sui::SUI",
"coinObjectCount": 1,
"totalBalance": "1000000000",
"lockedBalance": {}
}
],
"id": 1
}