Fetch the latest blockhash and its last valid block height.
HTTP transport instance
Desired commitment level (default: "confirmed")
"confirmed"
Additional call options
Context-wrapped blockhash result
const { value } = await getLatestBlockhash(transport);console.log(`Blockhash: ${value.blockhash}`); Copy
const { value } = await getLatestBlockhash(transport);console.log(`Blockhash: ${value.blockhash}`);
1.0.0
Fetch the latest blockhash and its last valid block height.