platform.getMaxStakeAmount

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

Signatureโ€‹

platform.getMaxStakeAmount(
    {
        subnetID: string,
        nodeID: string,
        startTime: int,
        endTime: int
    }
) -> 
{
    amount: uint64
}
  • subnetID is a Buffer or cb58 string representing subnet

  • nodeID is a string representing ID of the node whose stake amount is required during the given duration

  • startTime is a big number denoting start time of the duration during which stake amount of the node is required.

  • endTime is a big number denoting end time of the duration during which stake amount of the node is required.

Example

Request

curl -X POST --data '{
    "jsonrpc": "2.0",
    "method": "platform.getMaxStakeAmount",
    "params": {
        "subnetID":"11111111111111111111111111111111LpoYY",
        "nodeID":"NodeID-EZ38CcWHoSyoEfAkDN9zaieJ5Yq64YePY",
        "startTime": 1644240334,
        "endTime": 1644240634
    },
    "id": 1
}' -H 'content-type:application/json;' https://ava-mainnet.blastapi.io/<project-id>/ext/P

Result

{
    "jsonrpc": "2.0",
    "result": {
        "amount": "2000000000000000"
    },
    "id": 1
}

Last updated