cURL
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
JSON-RPC request
"2.0"
"platform.getTotalStake"
Method parameters
Show child attributes
Avalanche ID in cb58 format
"2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM"
1
Successful response
Method result
Unsigned 64-bit integer as string
"1000000000"
Was this page helpful?