gRPCGetBalance
sui-mainnet.nodit.io:443 sui.rpc.v2.StateService/GetBalanceunaryRetrieves the balance of a specific coin type for the specified address.
TransportgRPC
Request and response messages are identical for both transports. Only the wire protocol, headers, and client library differ.
- Protocol
- Native gRPC over HTTP/2 with TLS. Suited to server-side clients and grpcurl.
- Content-Type
application/grpc- Headers
x-api-key- Streaming
- Server, client, and bidirectional streaming are all supported.
- Errors
- grpc-status and grpc-message are delivered as HTTP/2 trailers.
Request Body
Required. The owner's Sui address.
Required. The type name for the coin (e.g., 0x2::sui::SUI).
Responses
Coin type.
Total balance.
Address balance portion.
Coin balance portion.