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
Oct 4, 2023

getblockcount RPC Method

Parameters

This method does not accept any parameters

Returns

result
The current block count
error
The error message, if any
Request
1
curl https://docs-demo.btc.quiknode.pro/ \
2
-X POST \
3
-H "Content-Type: application/json" \
4
--data '{ "method": "getblockcount" }'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free