cURL
curl --request POST \ --url 'https://api.avax.network/ext/bc/P#platform.getHeight' \ --header 'Content-Type: application/json' \ --data '{ "jsonrpc": "2.0", "method": "platform.getHeight", "params": {}, "id": 1 }'
{ "jsonrpc": "2.0", "result": {}, "id": 1 }
GetHeight returns the height of the last accepted block
JSON-RPC request
"2.0"
"platform.getHeight"
{}
1
Successful response
Method result
Was this page helpful?