Returns the latest blockhash
Show config fields
Show result fields
The slot this request was processed in
The latest blockhash (base-58 encoded)
Last valid block height for the blockhash
curl http://rpc.orbitflare.com -X POST -H "Content-Type: application/json" -d '{ "jsonrpc": "2.0", "id": 1, "method": "getLatestBlockhash", "params": [ {"commitment": "processed"} ] }'
import { Connection } from '@solana/web3.js'; const connection = new Connection('http://rpc.orbitflare.com'); const { blockhash, lastValidBlockHeight } = await connection.getLatestBlockhash(); console.log(blockhash, lastValidBlockHeight);
from solana.rpc.api import Client client = Client("http://rpc.orbitflare.com") response = client.get_latest_blockhash() print(response)
getRecentBlockhash