platform.getTotalStake RPC Method
To use the platform.getTotalStake method on the P-Chain, ensure that the end of your URL includes ext/bc/P.
Parameters
This method does not accept any parameters
Returns
stake
integer
Loading...
weight
integer
Loading...
Request
1curl -X POST "https://docs-demo.flare-mainnet.quiknode.pro/ext/bc/C/rpc/" \2-H "Content-Type: application/json" \3-d '{4"jsonrpc": "2.0",5"method": "platform.getTotalStake",6"params": {},7"id": 18}'
1curl -X POST "https://docs-demo.flare-mainnet.quiknode.pro/ext/bc/C/rpc/" \2-H "Content-Type: application/json" \3-d '{4"jsonrpc": "2.0",5"method": "platform.getTotalStake",6"params": {},7"id": 18}'
Response
1{2"jsonrpc": "2.0",3"result": {4"stake": "12412473347311030230",5"weight": "12412473347311030230"6},7"id": 18}
1{2"jsonrpc": "2.0",3"result": {4"stake": "12412473347311030230",5"weight": "12412473347311030230"6},7"id": 18}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free