Build Securely on Starknet with OpenZeppelin
OpenZeppelin provides secure smart contracts libraries for Cairo, Starknet’s native smart contract language. Built for scalability and powered by zero-knowledge proofs, Cairo enables developers to create high-performance DeFi, NFT, and gaming applications that inherit Ethereum security.
#[starknet::contract]
mod MyToken {
use openzeppelin_token::erc20::{ERC20Component, ERC20HooksEmptyImpl};
use starknet::ContractAddress;
component!(path: ERC20Component, storage: erc20, event: ERC20Event);
#[abi(embed_v0)]
impl ERC20MixinImpl = ERC20Component::ERC20MixinImpl<ContractState>;
impl ERC20InternalImpl = ERC20Component::InternalImpl<ContractState>;
#[constructor]
fn constructor(ref self: ContractState, recipient: ContractAddress) {
self.erc20.initializer("MyToken", "MTK");
self.erc20.mint(recipient, 1_000_000);
}
}More than
$250 million
Total Value Locked in OpenZeppelin Cairo Contracts on Starknet
More than
410 million
Transactions executed with OpenZeppelin Cairo Contracts on Starknet
Contracts
Contracts Wizard
Generate secure Cairo contracts quickly and safely. Configure modules, preview the code, and integrate directly into your workflow.
Contracts MCP
Integrate OpenZeppelin Cairo contracts with AI-assisted workflows. Generate and deploy secure contracts using proven standards, guided by machine copilots.
Enterprise-grade compliance and certifications
- CCPA Compliant
- SOC2 Certified
- GDPR Compliant
Security Services
Smart Contract Security Audit
Secure your Starknet applications with comprehensive Cairo contract audits that ensure resilience across DeFi, gaming, and tokenization protocols built on zero-knowledge technology.
Blockchain Infrastructure Audit
Strengthen your Starknet infrastructure through specialized audits of sequencer implementations, ZK prover systems, and bridge protocols, ensuring secure zero-knowledge execution at scale.