Miscellaneous
getSupply
Returns information about the current supply.
Parameters
configobject optional Configuration object.
commitmentstringCommitment level.
excludeNonCirculatingAccountsListboolExclude non circulating accounts list from response.
Result
objectAn object with total, circulating, nonCirculating, and nonCirculatingAccounts.
Example
Request
JSONcurl "https://eu.fluxrpc.com?key=<your-API-key>" -s -X POST -H "Content-Type: application/json" -d '
{
"jsonrpc": "2.0",
"id": 1,
"method": "getSupply",
"params": [{ "commitment": "finalized" }]
}'Response
JSON{
"jsonrpc": "2.0",
"result": {
"context": {
"slot": 1114
},
"value": {
"circulating": 16000,
"nonCirculating": 1000000,
"nonCirculatingAccounts": [
"FEy8pTbP5fEoqMV1GdTz83byuA8EKByqYat1PKDgVAq5"
],
"total": 1016000
}
},
"id": 1
}