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
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
}JSON-RPC request
Was this page helpful?