Solana RPC MethodsRemoved Methods

getFees (removed)

getFees combined a recent blockhash, its legacy fee calculator, and a last valid slot in one response.

Removed RPC method

This method was removed in Agave v2.0. Replace its lifetime and fee fields separately.

Migration

  1. Call getLatestBlockhash to obtain blockhash and lastValidBlockHeight. The replacement reports a block height, not the legacy lastValidSlot.
  2. Compile the transaction message with that blockhash, then pass the encoded message to getFeeForMessage.

Use lastValidBlockHeight when tracking transaction expiration; do not convert it to a slot or fixed wall-clock deadline.

Is this page helpful?

Table of Contents

Edit Page
© 2026 Solana Foundation. All rights reserved.