Skip to main content

getLatestBlockhash Access API Method

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

Updated on
Oct 25, 2024

getLatestBlockhash Access API Method

Please note that this RPC method requires the Yellowstone gRPC add-on enabled on your QuickNode endpoint.

Parameters

This method does not accept any parameters

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