Solana Agave 2.0 upgrade reference
A quick reference on the Solana node client transition to Agave and the deprecated methods
TLDR
- Agave replaces the original Solana node client and deprecates several outdated calls by October 21, 2024.
- Most newly recommended methods (e.g.,
getSignatureStatuses
) are already standard, so your existing workflows likely remain unaffected. - The code examples illustrate how to switch from
confirmTransaction
togetSignatureStatuses
in both JavaScript and Python.
In brief
Agave is the Rust-based Solana node client that is also a fork of the original Solana Labs client.
The primary purpose of Agave replacing the original Solana Labs client is make the network multi-client. The multi-client part mostly means the introduction of another node client — the C-based Firedancer.
Nodes are expected to upgrade to Agave v2.0 by October 21, 2024.
For you as a developer, this means there are a few methods that will be deprecated with other methods replacing them. The methods that are getting the deprecation have already been outdated for quite a bit of time and all of the replacement methods (except for isBlockhashValid) aren’t new. So the chances are you won’t be significantly affected.
See:
Methods: deprecated and replaced
Deprecated call | Replacement call |
---|---|
confirmTransaction | getSignatureStatuses |
getSignatureStatus | getSignatureStatuses |
getSignatureConfirmation | getSignatureStatuses |
getConfirmedSignaturesForAddress | getSignaturesForAddress |
getConfirmedBlock | getBlock |
getConfirmedBlocks | getBlocks |
getConfirmedBlocksWithLimit | getBlocksWithLimit |
getConfirmedTransaction | getTransaction |
getConfirmedSignaturesForAddress2 | getSignaturesForAddress |
getRecentBlockhash | getLatestBlockhash |
getFees | getFeeForMessage |
getFeeCalculatorForBlockhash | isBlockhashValid or getFeeForMessage |
getFeeRateGovernor | getFeeForMessage |
getSnapshotSlot | getHighestSnapshotSlot |
getStakeActivation | getAccountInfo | Solana (alternative approach) |