Links

platform.getMaxStakeAmount

Returns the maximum amount of nAVAX staking to the named node during a particular time period.

Parameters:

  • subnetID - string - A Buffer or cb58 string representing a subnet.
  • nodeID - string - A string representing ID of the node whose stake amount is required during the given duration
  • startTime - int - A big number denoting start time of the duration during which stake amount of the node is required.
  • endTime - int - A big number denoting end time of the duration during which stake amount of the node is required.

Returned Value:

  • amount - uint64

Example Response:

{
"jsonrpc": "2.0",
"result": {
"amount": "2000000000000000"
},
"id": 1
}
mainnet
testnet
curl https://mainnet.avalanche.validationcloud.io/v1/<YOUR_API_KEY_HERE>/ext/bc/P \
-X POST \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "platform.getMaxStakeAmount",
"params": {
"subnetID":"11111111111111111111111111111111LpoYY",
"nodeID":"NodeID-7Xhw2mDxuDS44j42TCB6U5579esbSt3Lg",
"startTime": 1644240334,
"endTime": 1644240634
},
"id": 1
}'
curl https://fuji.avalanche.validationcloud.io/v1/<YOUR_API_KEY_HERE>/ext/bc/P \
-X POST \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "platform.getMaxStakeAmount",
"params": {
"subnetID":"11111111111111111111111111111111LpoYY",
"nodeID":"NodeID-7Xhw2mDxuDS44j42TCB6U5579esbSt3Lg",
"startTime": 1644240334,
"endTime": 1644240634
},
"id": 1
}'