suix_getTotalSupply

Coin Query API

Return total supply for a coin

Parameters

KeyRequiredTypeDetail
coin_typestringtype name for the coin
"params": ["0xd2013e206f7983f06132d5b61f7c577638ff63171221f4f600a98863febdfb47::toce::TOCE"]

Result

Supply: <Supply>

  • value : <BigInt_for_uint64>

Example

Request

curl <your-endpoint> \
    -X POST \
    -H "Content-Type: application/json" \
    -d '
{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "suix_getTotalSupply",
    "params": [
      "0xd2013e206f7983f06132d5b61f7c577638ff63171221f4f600a98863febdfb47::toce::TOCE"
    ]
}
'

Response

{
    "jsonrpc": "2.0",
    "result": {
        "value": "300000000000000000"
    },
    "id": 1
}
Language
Click Try It! to start a request and see the response here!