OpenZeppelin Contracts
OpenZeppelin Contracts is a library of modular, reusable, secure smart contracts for the Ethereum network, written in Solidity.
Getting Started
Contracts Overview
Start working with the OpenZeppelin Contracts Library.
Contracts Wizard
Use the interactive Contracts Wizard to bootstrap your contract and learn about the components offered in OpenZeppelin Contracts.
Core Features
Token Standards
Implementations of ERC20, ERC721, ERC1155, and other token standards.
Access Control
Manage permissions and roles in your smart contracts securely.
Governance
Build decentralized governance systems for your protocols.
Utilities
Helper contracts and libraries for common blockchain development tasks.
Token Standards
ERC-20
Fungible token standard implementation with extensions and utilities.
ERC-721
Non-fungible token (NFT) standard with advanced features.
ERC-1155
Multi-token standard for both fungible and non-fungible tokens.
ERC-4626
Tokenized vault standard for yield-bearing assets.
Advanced Features
Account Abstraction
Smart account implementations and account abstraction utilities.
Upgradeable Contracts
Learn how to build upgradeable smart contracts safely.
Contracts Wizard
Interactive tool to generate smart contracts with custom features.
Upgrades Plugins
Tools for deploying and upgrading smart contracts with Hardhat and Foundry.
API Reference
API Overview
Complete API reference for all OpenZeppelin Contracts.
ERC20 API
Detailed API documentation for ERC20 tokens and extensions.
ERC721 API
Complete API reference for ERC721 NFT contracts.
Access Control API
API documentation for access control and ownership patterns.
Tools & Integrations
Relayer
Automate onchain transactions to schedule jobs, batch calls, and relay gasless meta transactions within your self-hosted infrastructure.
Monitor
Monitor onchain activity in real time to watch critical events, detect anomalies, trigger alerts on your preferred channels, and set automated responses with Relayer.
UI Builder
Spin up user interfaces for any deployed contract. Select the function, auto-generate a React UI with wallet-connect and multi-network support, and export a complete app.
Community Contracts
Additional contracts and extensions contributed by the community.