Skip to content
getFeeCalculatorForBlockhash combined a blockhash validity check with legacy fee-calculator data.
Removed RPC methodThis method was removed in Agave v2.0. Its two purposes now use separate RPC methods.

​Migration

  • To check whether a blockhash is still usable, call isBlockhashValid with that blockhash.
  • To calculate the fee for a transaction, compile its message with a recent blockhash and pass the base64-encoded message to getFeeForMessage.
There is no one-to-one replacement that returns a fee from a blockhash alone. Fees depend on the complete transaction message.