Overview
The@atxp/solana package provides Solana account implementations for using ATXP on the Solana blockchain. This package was extracted from @atxp/client in v0.9.0 to create a modular architecture with reduced dependencies.
New in v0.9.0: Solana functionality has been moved to this dedicated package. Users must now install
@atxp/solana separately along with required Solana dependencies.Installation
Required Dependencies
You’ll also need to install Solana’s peer dependencies:SolanaAccount
The main class for managing Solana accounts with ATXP.Constructor
Returns a configured SolanaAccount instance ready for use with ATXP clients.
Migration from v0.8.x
If you’re upgrading from ATXP SDK v0.8.x or earlier, follow these steps:Update your imports
Change your imports from After (v0.9.0+):
@atxp/client to @atxp/solana:Before (v0.8.x):Benefits of the Modular Architecture
The separation of Solana functionality into@atxp/solana provides several advantages:
Reduced Bundle Size
Reduced Bundle Size
Applications that don’t use Solana no longer need to include Solana dependencies, significantly reducing bundle size.
Security Improvements
Security Improvements
The core
@atxp/client package no longer includes the bigint-buffer vulnerability that was previously required for Solana support.Clearer Dependencies
Clearer Dependencies
Users explicitly install only the blockchain packages they need, making dependency management more transparent and intentional.
Easier Maintenance
Easier Maintenance
Blockchain-specific code is isolated, making it easier to update Solana integrations without affecting the core package.