Anchor v2 alpha is here! Up to 95% smaller binaries, 3.0 to 50.4× fewer CU
Anchor Docs
A lone boy hauls an anchor on the shore, evoking the weight of maritime destiny and Homer's mastery of atmosphere and technique.
Boy with Anchor, Winslow Homer, 1873
Overview

Anchor v1

Anchor is a development framework for building secure Solana programs (smart contracts).

Anchor v1 is the stable, published Anchor framework for building Solana programs and clients. It simplifies the process of writing, testing, deploying, and interacting with Solana programs.

The Anchor framework helps developers build production-ready applications faster while reducing potential vulnerabilities through built-in security features.

Note (Anchor v2 alpha)

Anchor v2 (anchor-lang-v2) is in alpha on the anchor-next branch. v2 is built on pinocchio and #![no_std], producing up to 95% smaller binaries and 3.0 to 50.4 times fewer CU per instruction in checked-in benchmarks. The v1 path documented here remains the stable, published path. See the v2 docs for the alpha reference.

Where to start?#

© 2026 Anchor Docs
Esc

Start typing to search the docs.