Skip to main content

suix_getTotalSupply

Coin Query API Return total supply for a coin

Coin Query API Return total supply for a coin

Parameters

  • coin_type : <string> - type name for the coin (e.g., 0x168da5bf1f48dafc111b0a488fa454aca95e0b5e::usdc::USDC)

Returns

  • Supply : <Supply>
    • value : <BigInt_for_uint64>

Example Request and Result for suix_getTotalSupply

Request

curl --location 'https://sui-testnet.blastapi.io/b2382197-29ea-4428-a562-742328e27ab0' \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"id": 1,
"method": "suix_getTotalSupply",
"params": ["0x2::sui::SUI"]
}'

Result

{
"jsonrpc": "2.0",
"result": {
"value": 100000000000004
},
"id": 1
}