Returns the latest blockhash.
This method is only available in solana-core
v1.9 or newer. Please use getRecentBlockhash for solana-core
v1.8 and below.
object
optional
Configuration object containing the following fields:
commitment string
optional
The level of commitment desired when querying state
minContextSlot number
optional
The minimum slot that the request can be evaluated at
The result is a JSON object with context
and value
fields:
value
contains:
blockhash: <string>
lastValidBlockHeight: <u64>