Solana smart contract framework — build, test, and deploy Solana programs with Rust. IDL generation, client SDKs, testing tools.
npm install @coral-xyz/anchor<h1>Anchor</h1>
<p>
<strong>Solana Program Framework</strong>
</p>
<p>
<a href="https://github.com/coral-xyz/anchor/actions"></a>
<a href="https://anchor-lang.com"></a>
<a href="https://discord.gg/NHHGSXAnXk"></a>
<a href="https://opensource.org/licenses/Apache-2.0"></a>
</p>
</div>
Anchor is a framework providing several convenient developer tools for writing Solana programs (sometimes called 'smart contracts').
Anchor is the most popular framework for Solana programs.
> [!NOTE]
> If you're familiar with developing in Ethereum's Solidity, Truffle, web3.js, then using Anchor will be familiar. Although the DSL syntax and semantics are targeted at Solana, the high level flow of writing RPC request handlers, emitting an IDL, and generating clients from IDL is the same.
For a quickstart guide and in depth tutorials, see the Anchor book and the Anchor documentation.
To jump straight to examples, go here. For the latest Rust and TypeScript API documentation, see docs.rs and the typedoc.
| Package | Description | Version | Docs |
| :---------------------- | :------------------------------------------------------- | :------------------------------------------------------------------------------------------------------------------------------- | :-------------------------------------------------------------------------------------------------------------- |
| anchor-lang | Rust primitives for writing programs on Solana | ![Crates.io](https://crat
... [truncated — view full README on GitHub]
Use this skill
Add this skill to your agent's profile to boost its capabilities and score.
Add to My Agent