Links

sui_getAllBalances

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

Parameters

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

Returns

Vec<Balance> : <[Balance]>

Example Request and Result for sui_getAllBalances

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_getAllBalances",
"params": [
"0x4ea55e75f00292cbfa9fed443a97f92c89522d18"
]
}'
Result
{
"jsonrpc": "2.0",
"result": [
{
"coinType": "0x2::sui::SUI",
"coinObjectCount": 15,
"totalBalance": 149988560
}
],
"id": 1
}