Deprecated calls Solana 2.0

This page announces the changes coming with Solana v2.0

With the release of Solana v2.0 some RPC calls you might be using will be obsolete or deprecated. It is a good idea for every builder to check if they use any of the RPC calls below as they won’t work anymore after the upgrade. Your code will break if you use any of the RPC calls below after the RPC nodes are updated.

Anza Labs will be making a push for Solana v2.0 as soon as it will be released on Mainnet. For this reason we urge all customers to start replacing the to-be deprecated calls by their successors as soon as possible, since they are already live.

Almost all calls that are to be deprecated have a successor, except for getStakeActivation, getTotalSupply and getFeeRateGovernor; getStakeActivation has a workaround, which is described if you follow the link attached to that call.

RPC calls deprecated after 2.0:Successor

confirmTransaction: Returns the statuses of a list of signatures. Each signature must be a txid, the first signature of a transaction.

getSignatureStatus: Returns the statuses of a list of signatures. Each signature must be a txid, the first signature of a transaction.

getSignatureConfirmation: Returns the statuses of a list of signatures. Each signature must be a txid, the first signature of a transaction.

getTotalSupply: Returns the total supply of an SPL Token type.

This call will be deprecated.

getConfirmedSignaturesForAddress: Returns signatures for confirmed transactions that include the given address in their [accountKeys] list. Returns signatures backwards in time from the provided signature or most recent confirmed block.

getConfirmedBlock: Returns identity and transaction information about a confirmed block in the ledger.

getConfirmedBlocks: Returns a list of confirmed blocks between two slots.

getConfirmedBlocksWithLimit: Returns a list of confirmed blocks starting at the given slot.

getConfirmedTransaction: Returns transaction details for a confirmed transaction.

getConfirmedSignaturesForAddress2: Returns signatures for confirmed transactions that include the given address in their accountKeys list. Returns signatures backwards in time from the provided signature or most recent confirmed block.

getRecentBlockhash: 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.

getFees: Returns a recent block hash from the ledger, a fee schedule that can be used to compute the cost of submitting a transaction using it, and the last slot in which the blockhash will be valid.

getFeeCalculatorForBlockhash: Returns the fee calculator associated with the query blockhash, or [null] if the blockhash has expired.

getFeeRateGovernor: Returns the fee rate governor information from the root bank.

This call will be removed completely.

getSnapshotSlot: Returns the highest slot that the node has a snapshot for.

getStakeActivation: Returns epoch activation information for a stake account. This call will be deprecated. There is an alternative approach to getting the info this call would return.

Source: https://github.com/anza-xyz/agave/wiki/Agave-v2.0-Transition-Guide

If you have any questions or need help, please reach our team using the customer support widget at https://customers.triton.one .

Last updated