Skip to content

suix_getAllBalances ​

Coin Query API

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

Parameters ​

  • owner · SuiAddress · requiredthe owner's Sui address

Result ​

Example ​

Request ​

bash
curl https://mainnet-api.inodra.com/v1/jsonrpc \
  -H 'Content-Type: application/json' \
  -H 'x-api-key: YOUR_API_KEY' \
  -d '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "suix_getAllBalances",
  "params": [
    "0x94f1a597b4e8f709a396f7f6b1482bdcd65a673d111e49286c527fab7c2d0961"
  ]
}'

Response ​

json
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": [
    {
      "coinType": "0x2::sui::SUI",
      "coinObjectCount": 15,
      "totalBalance": "3000000000",
      "lockedBalance": {},
      "fundsInAddressBalance": "42"
    }
  ]
}

The full-stack Sui data layer.