curl --request POST \
--url 'https://api.avax.network/ext/bc/P#platform.getCurrentSupply' \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"method": "platform.getCurrentSupply",
"params": {},
"id": 1
}
'{
"jsonrpc": "2.0",
"result": {
"supply": "1000000000",
"height": "1000000000"
},
"id": 1
}GetCurrentSupply returns an upper bound on the supply of AVAX in the system
curl --request POST \
--url 'https://api.avax.network/ext/bc/P#platform.getCurrentSupply' \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"method": "platform.getCurrentSupply",
"params": {},
"id": 1
}
'{
"jsonrpc": "2.0",
"result": {
"supply": "1000000000",
"height": "1000000000"
},
"id": 1
}JSON-RPC request
Was this page helpful?