getSupply
Returns information about the current supply.

Parameters

  • <object> - (optional) Config object:
    • commitment: <object> - (optional) Configures the commitment level of the blocks queried Accepts one of the following strings: ["finalized", "confirmed", "processed"] For more info, refer to this doc.
    • excludeNonCirculatingAccountsList: <bool> - (optional) excludes non circulating accounts list from response

Results

  • total: <u64> - Total supply in lamports
  • circulating: <u64> - Circulating supply in lamports
  • nonCirculating: <u64> - Non-circulating supply in lamports
  • nonCirculatingAccounts: <array> - an array of account addresses of non-circulating accounts, as strings. If excludeNonCirculatingAccountsList is enabled, the returned array will be empty.

Example

Request

cURL
1
curl --location --request POST 'https://solana-mainnet.g.alchemy.com/v2/demo/' \
2
--header 'Content-Type: application/json' \
3
--data-raw '{
4
"jsonrpc": "2.0",
5
"id": 1,
6
"method": "getSupply"
7
}'
Copied!

Response

1
{
2
"jsonrpc": "2.0",
3
"result": {
4
"context": {
5
"slot": 1114
6
},
7
"value": {
8
"circulating": 16000,
9
"nonCirculating": 1000000,
10
"nonCirculatingAccounts": [
11
"FEy8pTbP5fEoqMV1GdTz83byuA8EKByqYat1PKDgVAq5",
12
"9huDUZfxoJ7wGMTffUE7vh1xePqef7gyrLJu9NApncqA",
13
"3mi1GmwEE3zo2jmfDuzvjSX9ovRXsDUKHvsntpkhuLJ9",
14
"BYxEJTDerkaRWBem3XgnVcdhppktBXa2HbkHPKj2Ui4Z"
15
],
16
"total": 1016000
17
}
18
},
19
"id": 1
20
}
Copied!