Solana RPC MethodsRemoved Methods
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
- Call getLatestBlockhash to obtain
blockhashandlastValidBlockHeight. The replacement reports a block height, not the legacylastValidSlot. - 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?