Open-source concentrated liquidity AMM smart contract on Solana, with Rust and TypeScript SDKs for interacting with it.
anza-xyz/solana-sdk
Rust SDK for the Solana blockchain, providing core types and interfaces for on-chain programs and the Agave validator.
- Stars
- 262
- Forks
- 263
- Open issues
- 57
- Last commit
- 19 hours ago
What is it?
solana-sdk is the Rust software development kit for the Solana blockchain. It supplies the shared types and building blocks that on-chain programs and the Agave validator client rely on, such as addresses (formerly Pubkey), accounts, transactions, hashes, keypairs, and sysvars.
The repository is organized as a collection of crates that are versioned and published independently. The project is currently at v3, which split many former modules into standalone component crates such as solana-stake-interface, solana-system-interface, and solana-vote-interface, so developers can depend only on what they need. The SPL program libraries were similarly divided into interface and program crates.
The repo also includes build, test, formatting, clippy, benchmark, and coverage scripts, along with guidance for Agave developers on patching a local checkout of the SDK crates.
Key features
- 01Provides core Solana types such as addresses, accounts, transactions, and keypairs.
- 02Splits functionality into independently versioned component crates.
- 03Includes interface crates for system, stake, vote, and loader programs.
- 04Offers scripts for testing, formatting, linting, benchmarks, and coverage.
Use cases
- Writing on-chain Solana programs in Rust that need shared account and instruction types.
- Building Rust clients or tools that construct and sign Solana transactions.
- Contributing to or patching the Agave validator with local SDK changes.
Quick start
- 1
Install rustc, cargo and rustfmt via the rustup installer from the README
- 2
Clone the source code
git clone https://github.com/anza-xyz/solana-sdk.git - 3
Run the test suite
cargo test
Things to know
- This is a Rust library (SDK), not a standalone application, so it is used as a dependency rather than run directly.
- Upgrading to v3 requires migrating many modules that were removed in favor of separate component crates.
Topics
FAQ
- What is solana-sdk?
- Rust SDK for the Solana blockchain, providing core types and interfaces for on-chain programs and the Agave validator. solana-sdk is the Rust software development kit for the Solana blockchain. It supplies the shared types and building blocks that on-chain programs and the Agave validator client rely on, such as addresses (formerly Pubkey), accounts, transactions, hashes, keypairs, and sysvars.
- Is solana-sdk free to use? What license does it have?
- solana-sdk is open source under the Apache-2.0 license. Check the license terms before using it in commercial products.
- Is solana-sdk still maintained?
- Actively maintained. The last commit to solana-sdk was on Nov 6, 2026.
- What can I use solana-sdk for?
- Writing on-chain Solana programs in Rust that need shared account and instruction types. Building Rust clients or tools that construct and sign Solana transactions. Contributing to or patching the Agave validator with local SDK changes.
- How do I install solana-sdk?
- Install rustc, cargo and rustfmt via the rustup installer from the README Clone the source code: git clone https://github.com/anza-xyz/solana-sdk.git Run the test suite: cargo test
- Where can I get solana-sdk?
- The source code and installation instructions are on GitHub: https://github.com/anza-xyz/solana-sdk
Summary generated by AI from the project's README. GitHub stats refresh daily.
Related projects
An encrypted agent-to-agent network where AI agents claim @handle identities, discover each other, message securely, and pay in USDC/SOL on Solana.
The second edition of "Mastering Ethereum", a book covering Ethereum development, smart contracts, and the network's underlying technology.
Interactive web app and generator that builds smart contracts from OpenZeppelin Contracts components for Solidity, Cairo, Stellar, Stylus and more.
Sway is a Rust-inspired programming language for writing smart contracts on the Fuel blockchain.
Rust-based toolkit for Ethereum smart contract development, with Forge, Cast, Anvil and Chisel for building, testing, and interacting with EVM chains.