Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
cURL
curl --request POST \ --url https://rpc.raze.bot/ \ --header 'Content-Type: application/json' \ --data ' { "jsonrpc": "2.0", "id": 1, "method": "getTokenSupply", "params": [ "So11111111111111111111111111111111111111112" ] } '
200
success
{ "jsonrpc": "2.0", "id": 1, "result": { "context": { "slot": 418263087 }, "value": { "amount": "0", "decimals": 9, "uiAmount": 0, "uiAmountString": "0" } } }
Returns the supply (raw + UI amount + decimals) for a mint address.
2.0
"2.0"
getTokenSupply
"getTokenSupply"
[mint, commitment?]
[ "So11111111111111111111111111111111111111112"]
1
JSON-RPC response. Inspect result (success) or error (failure).
result
error