cURL
curl --request POST \ --url 'https://api.avax.network/ext/bc/P#platform.getBlockByHeight' \ --header 'Content-Type: application/json' \ --data '{ "jsonrpc": "2.0", "method": "platform.getBlockByHeight", "params": {}, "id": 1 }'
{ "jsonrpc": "2.0", "result": { "block": "<string>", "encoding": "<string>" }, "id": 1 }
GetBlockByHeight returns the block at the given height.
JSON-RPC request
"2.0"
"platform.getBlockByHeight"
Method parameters
Show child attributes
1
Successful response
Method result
Was this page helpful?