Parameters
chainId
string
default:"solana-devnet"
required
Unique identifier for a blockchain network.
Request identifier used to match responses.
jsonrpc
string
default:"2.0"
required
JSON-RPC version.
method
string
default:"getTokenSupply"
required
JSON-RPC method name.
Parameters for method getTokenSupply: [mintAddress, config]Positional parameters for getTokenSupply:params[0]: Pubkey of the token Mint to query (base-58 encoded string).params[1]: Optional configuration object.
Returns
Token supply information for the given mint.
The raw total token supply without decimals (string representation of u64).
Number of base 10 digits to the right of the decimal place.
Total token supply using mint-prescribed decimals (deprecated).
Total token supply as a string using mint-prescribed decimals.
curl --request POST \
--url https://api.uniblock.dev/uni/v1/json-rpc?chainId=solana-devnet \
--header 'content-type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "getTokenSupply",
"params": [
"3wyAj7Rt1TWVPZVteFJPLa26JmLvdb1CAKEFZm3NY75E"
]
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"context": {
"slot": 1114
},
"value": {
"amount": "100000",
"decimals": 2,
"uiAmount": 1000,
"uiAmountString": "1000"
}
}
}