Skip to main content

platform.getHeight RPC Method

Returns the height of the last accepted block.

Updated on
Apr 29, 2026
To use the platform.getHeight method on the P-Chain, ensure that the end of your URL includes ext/bc/P.

Parameters

This method does not accept any parameters

Returns

height
integer

The height of the last accepted block

Request
Response
1
{
2
"jsonrpc": "2.0",
3
"result": {
4
"height": "1773310"
5
},
6
"id": 1
7
}
1
{
2
"jsonrpc": "2.0",
3
"result": {
4
"height": "1773310"
5
},
6
"id": 1
7
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free