Anchor is a framework for Solana's Sealevel (opens new window) runtime providing several convenient developer tools.
- Rust crates and eDSL for writing Solana programs
- IDL (opens new window) specification
- TypeScript package for generating clients from IDL
- CLI and workspace management for developing complete applications
If you're familiar with developing in Ethereum's Solidity (opens new window), Truffle (opens new window), web3.js (opens new window) or Parity's Ink! (opens new window), then the experience 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.
Here, we'll walk through several tutorials demonstrating how to use Anchor. To skip the tutorials and jump straight to examples, go here (opens new window). For an introduction to Solana, see the docs (opens new window).
Anchor is in active development, so all APIs are subject to change. If you are one of the early developers to try it out and have feedback, please reach out by filing an issue (opens new window). This documentation is a work in progress and is expected to change dramatically as features continue to be built out. If you have any problems, consult the source (opens new window) or feel free to ask questions on the Discord (opens new window).