Last updated 11 months ago
Was this helpful?
Returns the height of the last accepted block.
This method will use 10 .
10
None
height - int
height
// Result { "jsonrpc": "2.0", "result": { "height": "56" }, "id": 1 }
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.getHeight", "params": {}, "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.getHeight", "params": {}, "id": 1 }'