Skip to Content
RPC ServicesSolana (Beta)getLatestBlockhash
Compatibility

getLatestBlockhash

Return the latest blockhash and last valid block height.

MethodgetLatestBlockhash
Route familySolana
StageBeta

Available under Solana HTTP API (Beta). Use the chain-family pages for route switching and the method pages for exact request and response shapes.

Compatibility reference only. Live endpoint examples and Try send are not published on this page.

Request fields

JSON-RPC request body

FieldTypeRequiredNotes
jsonrpcstringRequiredJSON-RPC version. Use `2.0`.
idstring | numberRequiredCaller request id.
methodstringRequiredAllowlisted chain method.
paramsarrayRequiredMethod arguments.

Response fields

JSON-RPC response body

FieldTypeNotes
jsonrpcstringJSON-RPC version.
idstring | numberEchoed request id.
resultunknownSuccessful method result.
errorobjectStandard JSON-RPC error object when the request fails.