Skip to main content
Returns the current block height of the node at the specified commitment level.

Request

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "getBlockHeight",
  "params": [{ "commitment": "finalized" }]
}

Parameters

commitment
string
Commitment level for the query. One of processed, confirmed, or finalized. Defaults to finalized.

Response

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": 150448256
}
result
number
The current block height (u64).

Example

curl "https://rpc.solami.fast/sol?api_key=YOUR_API_KEY" \
  -X POST \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "getBlockHeight",
    "params": [{ "commitment": "finalized" }]
  }'