Skip to main content

getblockcount RPC Method

Loading...

Updated on
Apr 30, 2025

getblockcount RPC Method

Parameters

This method does not accept any parameters

Returns

result
Loading...
error
Loading...
Request
1
curl https://docs-demo.btc.quiknode.pro/ \
2
-X POST \
3
-H "Content-Type: application/json" \
4
--data '{"id":1,"jsonrpc":"2.0","method":"getblockcount"}'
Response
1
{
2
"result": 894201,
3
"error": null,
4
"id": null
5
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free