getLatestBlockhash RPC Method
Returns the latest blockhash.Version Restriction
This method is only available insolana-core
v1.9 or newer. Please use getRecentBlockhash for solana-core
v1.8 and below.
Parameters
object
optionalConfiguration object containing the following fields:commitment
string
optionalThe level of commitment desired when querying stateminContextSlot
number
optionalThe minimum slot that the request can be evaluated at
Result Details
The result is a JSON object withcontext
and value
fields:
value
contains:-
blockhash: <string>
- Latest blockhash as a base-58 encoded string
- Used to identify and verify the current state of the blockchain
-
lastValidBlockHeight: <u64>
- The last block height at which the blockhash will be valid
- Defines the expiration point for transactions using this blockhash
-