Get Coin Info
Returns total supply for a coin type from StateService/GetCoinInfo treasury field. Used for tokenomics and market cap calculations.
Service
sui.rpc.v2.StateService
Parity
Direct
This method has a direct mapping from the JSON-RPC method suix_getTotalSupply.
Request
Parameters
{
"coin_type": "0x2::sui::SUI"
}
Example (grpcurl)
grpcurl -H "x-api-key: YOUR_API_KEY" \
-d '{"coin_type":"0x2::sui::SUI"}' \
grpc.surflux.dev:443 \
sui.rpc.v2.StateService/GetCoinInfo
Response
The response structure is defined by the sui/rpc/v2/state_service.proto definition.
Response Fields
| Field | Type | Description |
|---|---|---|
coin_type | string | See proto definition |
metadata | CoinMetadata | See proto definition |
treasury | CoinTreasury | See proto definition |
regulated_metadata | RegulatedCoinMetadata | See proto definition |
info
For full field definitions, please refer to the Sui Protobuf definitions.