Request
Parameters
Commitment level for the query. One of
processed, confirmed, or finalized. Defaults to finalized.Response
The current block height (u64).
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Returns the current block height of the node.
{
"jsonrpc": "2.0",
"id": 1,
"method": "getBlockHeight",
"params": [{ "commitment": "finalized" }]
}
processed, confirmed, or finalized. Defaults to finalized.{
"jsonrpc": "2.0",
"id": 1,
"result": 150448256
}
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" }]
}'