For the complete documentation index, see llms.txt. This page is also available as Markdown.

getLatestBlockhash

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

Parameters:

None

Returns:

slots - tring - 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

Example:

grpcurl -proto geyser.proto
-H "x-token: <your-token>" 
-d '{}' 
solana.blockpi.network
geyser.Geyser/GetBlockHeight/GetLatestBlockhash

Last updated

Was this helpful?