Solana RPC · Accounts & balances

POST getTokenSupply

Total supply of an SPL token mint.

Endpoint

POST  https://solrpc.infinityblocks.io/<API_KEY>

Standard Solana JSON-RPC 2.0 over HTTP POST. The API key is part of the URL path.

Parameters

ParamTypeRequiredDescription
mintstringyesBase-58 token mint address.
configobjectnocommitment.

Request

curl -s https://solrpc.infinityblocks.io/<API_KEY> \
  -X POST -H 'content-type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"getTokenSupply","params":["<MINT>",{"commitment":"confirmed"}]}'

With @solana/web3.js

const supply = await rpc.getTokenSupply(new PublicKey("<MINT>"));

Response

{ "jsonrpc": "2.0", "id": 1, "result": { "context": { "slot": 423214981 }, "value": { "amount": "1000000000000000", "decimals": 6, "uiAmount": 1000000000, "uiAmountString": "1000000000" } } }

Try it

Run getTokenSupplylive · POST

Replace placeholders (e.g. <ADDRESS>) with real values. Your key is stored only in this browser.