Getting Started
- Install the Anchor CLI:
cargo install --git https://github.com/coral-xyz/anchor anchor-cli. - Create a new project with
anchor init my-programto scaffold a program with test structure. - Define your program’s instructions and accounts using Anchor’s declarative macros in
lib.rs. - Build and test locally with
anchor build && anchor test, then deploy to devnet withanchor deploy.
Key Features
- Declarative account validation define account constraints with macros that automatically generate security checks.
- Automatic serialization handles Borsh serialization and deserialization of account data and instruction arguments.
- IDL generation automatically generates an Interface Description Language file for client-side integration.
- TypeScript client auto-generates a TypeScript client library from the IDL for seamless frontend integration.
- Built-in testing provides a testing framework with local validator support for rapid development iteration.
- Security-first design eliminates common Solana vulnerabilities like missing signer checks and account validation errors.
// related tools
Helius
Solana / Developer Tools
Solana's dev infrastructure — the RPC, APIs, and webhooks powering Jupiter, Phantom, and more
freemium
web
Backpack
Solana / Wallets
Next-gen crypto wallet and exchange from the Madlads team
free
web git
Jito
Solana / Liquid Staking
Solana's liquid staking + MEV infrastructure — JitoSOL earns enhanced yields, Block Engine powers the network
oss
web git