Parameters
chainId
string
default:"sui"
required
Unique identifier for a blockchain network.
Request identifier used to match responses.
jsonrpc
string
default:"2.0"
required
JSON-RPC version.
method
string
default:"suix_getAllBalances"
required
JSON-RPC method name.
Parameters for method suix_getAllBalances: [ownerAddress]Positional parameters for suix_getAllBalances:
Returns
Array - Balances for the address in the request.
SuixBalance object
Total balance formatted as uint128 string
curl --request POST \
--url https://api.uniblock.dev/uni/v1/json-rpc?chainId=sui \
--header 'content-type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "suix_getAllBalances",
"params": [
"0x94f1a597b4e8f709a396f7f6b1482bdcd65a673d111e49286c527fab7c2d0961"
]
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": [
{
"coinType": "0x2::sui::SUI",
"coinObjectCount": 15,
"totalBalance": "3000000000",
"lockedBalance": {}
}
]
}