GetBalance - Query Coin Balances via gRPC
Query Sui coin balances efficiently using the gRPC GetBalance method. Check SUI and custom token balances with high-performance binary serialization through Dwellir's Sui infrastructure.
Sui RPC endpoint: endpoint URLs, plans and pricing.
Query Sui coin balances efficiently using the gRPC GetBalance method. Check SUI and custom token balances with high-performance binary serialization through Dwellir's Sui infrastructure.
Method Signature
- Service:
sui.rpc.v2.StateService - Method:
GetBalance - Type: Unary RPC
grpcurl \
-H "x-api-key: YOUR_API_KEY" \
-d '{
"owner": "0x0",
"coin_type": "0x2::sui::SUI"
}' \
api-sui-mainnet-full.n.dwellir.com:443 \
sui.rpc.v2.StateService/GetBalanceUsage notes
The response contains a nested balance object. Its total is balance.balance; address_balance and coin_balance provide the two components.
Related resources
VerifySignature
Verify cryptographic signatures for Sui transactions via gRPC. Essential for security validation and multi-sig workflows with Dwellir.
GetCoinInfo
Retrieve comprehensive metadata for Sui coin types including name, symbol, decimals, and supply information via gRPC. Essential for token displays and DeFi applications with Dwellir.