New: getTransactionsForAddress - Query transaction history with advanced filtering, sorting, and pagination. Learn More
English
Returns the current block height of the node.
cURL
curl --request POST \ --url 'https://mainnet.helius-rpc.com/?api-key=' \ --header 'Content-Type: application/json' \ --data ' { "jsonrpc": "2.0", "id": "1", "method": "getBlockHeight", "params": [ { "commitment": "finalized", "minContextSlot": 1 } ] } '
{ "jsonrpc": "2.0", "id": "<string>", "result": 1233 }
Your Helius API key. You can get one for free in the dashboard.
The JSON-RPC protocol version.
2.0
A unique identifier for the request.
"1"
The name of the RPC method to invoke.
getBlockHeight
Parameters for the request.
Show child attributes
The commitment level for the request.
processed
confirmed
finalized
"finalized"
The minimum slot at which the request can be evaluated.
1
Successfully retrieved current block height.
Current block height as u64.
u64
1233
Was this page helpful?