Anchor Framework

Estándar de Contrato Inteligente

The dominant development framework for Solana smart contracts ('programs'), providing a Rust eDSL with macros, IDL generation, type-safe client generation, and built-in security checks (account validation, ownership verification, signer constraints). Plays the role on Solana that Hardhat/Truffle play on Ethereum, with the additional responsibility of defining the standard patterns by which Solana programs are structured, serialized, and called.

Fundación

Detalles

Licencia https://github.com/coral-xyz/anchor
Estado de Desarrollo 🟢 Activo
Detalle del Estado de Desarrollo Active
Propietario Originally: coral-xyz (Armani Ferrante / Anchor community); Stewardship transferred to Solana Foundation (solana-foundation/anchor)
Órgano de Gobierno Solana Foundation (stewardship transferred from coral-xyz / Armani Ferrante)
País Global / Decentralized
Año de Inicio 2021
Stack Rust (Anchor eDSL via procedural macros); generates Borsh-serialized instruction handlers; emits IDL (Interface Definition Language, JSON) from which TypeScript/JavaScript clients are auto-generated; anchor-cli for project management
Financiamiento Originally volunteer/coral-xyz; Solana Foundation grants and ecosystem support
Última Investigación 9 mar 2026

Estándar de Contrato Inteligente Atributos

Orígenes Created by Armani Ferrante as a developer productivity framework addressing the complexity of raw Solana program development in Rust. Rapidly became the de facto standard framework for Solana smart contract development. Originally hosted at coral-xyz; stewardship transferred to the Solana Foundation. Inspired by the high-level contract development experience of Ethereum's Solidity and Truffle ecosystem.
Formatos de Datos Anchor IDL (JSON): specifies instructions, accounts, types, and error codes; Borsh binary serialization for all on-chain instruction data and account data; 8-byte discriminator prefix per account type and instruction
Términos Apache 2.0
Fondos Unknown
Basado En Solana SPL Token Program and native Solana programming model; Borsh serialization; conceptually analogous to Hardhat + OpenZeppelin for Ethereum
Permisos Open-source framework; permissionless program deployment to Solana mainnet; programs may be marked as upgradeable or immutable at deployment
Herramientas de Desarrollo anchor-cli; Anchor Version Manager (AVM); @coral-xyz/anchor (TypeScript client library); Anchor Playground; VSCode Rust plugins; Solana Test Validator
Madurez del Protocolo / Estandarización De facto standard for Solana development; the large majority of new Solana programs use Anchor; IDL format is widely supported by wallets, explorers, and tooling; active development with regular releases
Marco de Confianza Security enforced via compile-time macro constraints (account ownership, signer checks, account discriminators); Anchor reduces common Solana security pitfalls; deployed program trust model is Solana consensus
Dominio de Aplicación Objetivo All Solana smart contract development: DeFi, NFT platforms, DAOs, gaming, token programs, civic applications; serves as the programming interface layer for most Solana protocols
Modelo de Despliegue Framework for program development; programs deployed as upgradeable or immutable BPF bytecode accounts on Solana; each program has a unique program ID
Tipo de Estándar Interface Standard
Ecosistema Solana