TriportRPC

getSupply

Last updated:

getSupply reports the total supply of SOL on the cluster, split into the circulating and non-circulating portions. All amounts are returned in lamports (1 SOL = 1,000,000,000 lamports), so divide each figure by 1e9 to display a SOL amount.

The supply is reported relative to a particular slot, returned in the context object. Use the optional commitment config to control how finalized that slot must be.

By default the response also includes nonCirculatingAccounts — the list of account public keys whose balances make up the non-circulating supply. This list can be large; set excludeNonCirculatingAccountsList: true to suppress it and return an empty array, which keeps the response small when you only need the aggregate totals.

Parameters

getSupply parameters
NameTypeRequiredDescription
configGetSupplyConfigNo

Returns

getSupply return value
FieldType
resultobject

Examples

curl https://triport.io/sol \
  -X POST -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer <api-key>' \
  -d '{"id":1,"method":"getSupply","params":[],"jsonrpc":"2.0"}'
const res = await fetch("https://triport.io/sol", {
  method: "POST",
  headers: { "Content-Type": "application/json", Authorization: "Bearer <api-key>" },
  body: JSON.stringify({
  "id": 1,
  "method": "getSupply",
  "params": [],
  "jsonrpc": "2.0"
}),
});
const data = await res.json();
import requests
resp = requests.post(
    "https://triport.io/sol",
    headers={"Authorization": "Bearer <api-key>"},
    json={"id":1,"method":"getSupply","params":[],"jsonrpc":"2.0"},
)
print(resp.json())

Usage

  1. Transport: HTTP (JSON-RPC).
  2. Networks: mainnet, devnet, testnet.
  3. Credit cost: 1 per call.

FAQ

What does getSupply do?
Returns information about the current supply of SOL, broken down into circulating and non-circulating lamports.
How many credits does getSupply cost?
getSupply costs 1 credit(s) per call on Triport by default.
Is getSupply available over WebSocket?
getSupply is an HTTP JSON-RPC method.