Learn getSupply use cases, code examples, request parameters, response structure, and tips.
getSupply
RPC method provides information about the current supply of SOL on the Solana network. It details the total supply, circulating supply, non-circulating supply, and can optionally list non-circulating accounts.
getInflationRate
and getInflationGovernor
provide more direct inflation data, getSupply
can offer a broader context.getSupply
method accepts an optional configuration object with the following fields:
commitment
(string, optional): Specifies the commitment level for the query. If omitted, the default commitment of the RPC node is used.excludeNonCirculatingAccountsList
(boolean, optional): If set to true
, the nonCirculatingAccounts
array will be excluded from the response. Defaults to false
. This can be useful to reduce response size if the list of individual non-circulating accounts is not needed.value
: An object containing the supply information:
total
(u64): The total SOL supply in lamports.circulating
(u64): The circulating SOL supply in lamports.nonCirculating
(u64): The non-circulating SOL supply in lamports.nonCirculatingAccounts
(array of strings, optional): An array of public keys (as base58 encoded strings) of accounts holding non-circulating SOL. This field is omitted if excludeNonCirculatingAccountsList
was set to true
in the request.context
: An object containing:
slot
(u64): The slot at which the information was retrieved.excludeNonCirculatingAccountsList: false
):
excludeNonCirculatingAccountsList: true
):
1,000,000,000
(1 SOL = 10^9 lamports) to convert to SOL.context
object and based on the commitment level used.excludeNonCirculatingAccountsList
: Use this option if you only need the aggregate supply numbers to optimize the response size and processing time, especially if the list of non-circulating accounts is very long.getSupply
RPC method to query Solana’s supply data.