getRecentBlockhash RPC Method
Returns a recent block hash from the ledger, and a fee schedule that can be used to compute the cost of submitting a transaction using it.
Deprecated Method
This method is expected to be removed in solana-core
v2.0. Please use
getLatestBlockhash instead.
Parameters
string
required
Pubkey of account to query, as base-58 encoded string
object
optional
Configuration object containing the following fields:
commitment string
optional
Result
An RpcResponse containing a JSON object consisting of a string blockhash and FeeCalculator JSON object.
RpcResponse<object>
- RpcResponse JSON object withvalue
field set to a JSON object including:blockhash: <string>
- a Hash as base-58 encoded stringfeeCalculator: <object>
- FeeCalculator object, the fee schedule for this block hash