Anchor Framework

Padrão 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.

Fundação

Detalhes

Licença https://github.com/coral-xyz/anchor
Status de Dev 🟢 Ativo
Detalhe do Status de Dev Active
Proprietário Originally: coral-xyz (Armani Ferrante / Anchor community); Stewardship transferred to Solana Foundation (solana-foundation/anchor)
Órgão de Governança Solana Foundation (stewardship transferred from coral-xyz / Armani Ferrante)
País Global / Decentralized
Ano de Início 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
Financiamento Originally volunteer/coral-xyz; Solana Foundation grants and ecosystem support
Última Investigação 9 de mar. de 2026

Capacidades

Administração transparente Formatos interoperáveis

Padrão de Contrato Inteligente Atributos

Origens 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 Dados 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
Termos Apache 2.0
Fundos Unknown
Baseado Em Solana SPL Token Program and native Solana programming model; Borsh serialization; conceptually analogous to Hardhat + OpenZeppelin for Ethereum
Permissões Open-source framework; permissionless program deployment to Solana mainnet; programs may be marked as upgradeable or immutable at deployment
Ferramentas de Desenvolvimento anchor-cli; Anchor Version Manager (AVM); @coral-xyz/anchor (TypeScript client library); Anchor Playground; VSCode Rust plugins; Solana Test Validator
Maturidade / Padronização do Protocolo 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
Estrutura de Confiança 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
Domínio de Aplicação-Alvo 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 Implantação Framework for program development; programs deployed as upgradeable or immutable BPF bytecode accounts on Solana; each program has a unique program ID
Tipo de Padrão Interface Standard
Ecossistema Solana