gRPCGetBlockHeight

solana-mainnet.nodit.io:443 geyser.Geyser/GetBlockHeightunary

Returns the current block height at the given commitment level. Block height counts produced blocks and excludes skipped slots.

Request Body
commitmentstring (enum)

Commitment level for the query. One of PROCESSED, CONFIRMED, or FINALIZED. Defaults to PROCESSED when omitted.

Responses
block_heightstring (uint64)

Current block height.

X-API-KEY
RequestCU10
grpcurl
grpcurl \
  -import-path . -proto geyser.proto \
  -H "X-API-KEY: {YOUR_API_KEY}" \
  -d '{
    "commitment": "CONFIRMED"
  }' \
  solana-mainnet.nodit.io:443 geyser.Geyser/GetBlockHeight
Response
Example · 200
{
  "block_height": "350391118"
}