curl --request POST \
--url 'https://api.avax.network/ext/bc/P#platform.getTotalStake' \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"method": "platform.getTotalStake",
"params": {},
"id": 1
}
'{
"jsonrpc": "2.0",
"result": {
"stake": "1000000000",
"weight": "1000000000"
},
"id": 1
}GetTotalStake returns the total amount staked on the Primary Network
curl --request POST \
--url 'https://api.avax.network/ext/bc/P#platform.getTotalStake' \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"method": "platform.getTotalStake",
"params": {},
"id": 1
}
'{
"jsonrpc": "2.0",
"result": {
"stake": "1000000000",
"weight": "1000000000"
},
"id": 1
}JSON-RPC request
Was this page helpful?