Chain info
platform.getHeight
GetHeight returns the height of the last accepted block
JSON-RPC request
jsonrpcstring
methodstring
paramsobject
idinteger
Response Body
application/json
application/json
curl -X POST "https://api.avax.network/ext/bc/P#platform.getHeight" \ -H "Content-Type: application/json" \ -d '{ "jsonrpc": "2.0", "method": "platform.getHeight", "params": {}, "id": 1 }'{
"jsonrpc": "2.0",
"result": {},
"id": 1
}{
"jsonrpc": "2.0",
"error": {
"code": 0,
"message": "string",
"data": {}
},
"id": 1
}Is this guide helpful?