getBlockHeight
Returns the current block height of the node. Block height is the number of blocks that have been produced since the genesis block. This is different from slot numbers, as blocks represent confirmed batches of transactions. Parameters
config(optional) — Optional configuration object. Every field is optional; omit the entire object to use defaults.
Pass Authorization: <api-key> on each request.
JSON-RPC protocol version.
2.0Possible values: Request identifier echoed back in the response.
1Must be getBlockHeight.
getBlockHeightPossible values: Successful getBlockHeight response.
Base envelope of every JSON-RPC 2.0 response.
2.0Possible values: Echoed request id.
1Current block height.
395090168Authentication required or invalid.
Insufficient permissions for the request.
Rate limit exceeded for this tier.
Unexpected server error.
curl -X POST https://public.rpc.solanavibestation.com \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "getBlockHeight",
"params": [
{
"commitment": "finalized"
}
]
}'{
"jsonrpc": "2.0",
"id": 1,
"result": 395090168
}Last updated