sui_getBalance
Return the total coin balance for one coin type, owned by the address owner.
owner
:<SuiAddress>
- the owner's Sui addresscoin_type
:<string>
- optional fully qualified type names for the coin (e.g., 0x168da5bf1f48dafc111b0a488fa454aca95e0b5e::usdc::USDC), default to 0x2::sui::SUI if not specified.
Balance
: <Balance>
- value :
<uint64>
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_getBalance",
"params": [
"0x30dab78d58471a78496eb71c2c6e77ba268f0390"
]
}'
Result
{
"jsonrpc": "2.0",
"result": {
"coinType": "0x2::sui::SUI",
"coinObjectCount": 10,
"totalBalance": 100000000
},
"id": 1
}
Last modified 2mo ago