Skip to main content

getLatestBlockhash gRPC Method - Solana gRPC

Retrieves the latest blockhash from the Solana blockchain, along with its associated slot and last valid block height.

Updated on
Sep 03, 2026
Solana gRPC is included with Scale plans and up. Learn more on our pricing page.

Parameters

commitment
string

The level of commitment required for the query. The options include:

PROCESSED
string

The node will query its most recent block. Note that the block may not be complete

CONFIRMED
string

The node will query the most recent block that has been voted on by the supermajority of the cluster

FINALIZED
string

The node will query the most recent block confirmed by the supermajority of the cluster as having reached maximum lockout, meaning the cluster has recognized this block as finalized

Returns

slot
string

The slot number associated with the latest blockhash.

blockhash
string

The latest blockhash

lastValidBlockHeight
string

The last block height at which the retrieved blockhash is valid

Request
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free