Skip to main content

getblockcount RPC Method

Returns the height of the fully-validated chain. The genesis block has a height of 0.

Updated on
Feb 04, 2026

Parameters

This method does not accept any parameters

Returns

result
integer

The current block count

error
object | null

JSON-RPC error object when the request failed, or null on success

id
integer

The JSON-RPC request identifier

Request
Response
1
{
2
"result": 936616,
3
"error": null,
4
"id": 1
5
}
1
{
2
"result": 936616,
3
"error": null,
4
"id": 1
5
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free