OP Mainnet logoOP Mainnet

Badges

EVM badge
Ethereum with blobs badge
Built on OP Stack badge
Part of the Superchain badge
Governance badge
L3 Host Chain badge

About

OP Mainnet is an EVM-equivalent Optimistic Rollup. It aims to be fast, simple, and secure.

Value Locked

$6.45 B

6.75%

Canonically Bridged
$4.13 B
Externally Bridged
$14.96 M
Natively Minted
$2.30 B
  • Tokens
  • Daily TPS
    5.256.03%
  • 30D tx count
    14.10 M
  • Stage
    Stage 1
  • Type
    Optimistic Rollup
  • Purpose
    Universal
  • ...

    Tokens

    Choose token

    Natively Minted Tokens

    Optimism (OP)
    USD Coin (USDC)
    VelodromeV2 (VELO)
    LayerZero (ZRO)
    Extra Finance (EXTRA)
    Kwenta (KWENTA)
    Frax Ether (frxETH)
    Staked Frax Ether (sfrxETH)
    Pika (PIKA)
    Tarot (TAROT)
    Frax (FRAX)
    Protocol Token (KITE)
    Staked FRAX (sFRAX)
    exactly (EXA)
    Frax Share (FXS)
    Externally Bridged Tokens

    Renzo Restaked ETH (ezETH)
    StargateToken (STG)
    Optimism tBTC v2 (tBTC)
    KelpDao Restaked ETH (rsETH)
    Staked USDe (sUSDe)
    USDe (USDe)
    Canonically Bridged Tokens (Top 15)

    Ether (ETH)
    Tether USD (USDT)
    Worldcoin (WLD)
    Phemex Token (PT)
    Synthetix Network Token (SNX)
    USD Coin (USDC.e)
    Wrapped liquid staked Ether 2.0 (wstETH)
    Wrapped BTC (WBTC)
    Dai Stablecoin (DAI)
    Perpetual (PERP)
    Rocket Pool ETH (rETH)
    HanChain (HAN)
    Thales DAO Token (THALES)
    ChainLink Token (LINK)
    Dola USD Stablecoin (DOLA)

    ...

    ...

    Milestones

    OP Mainnet becomes Stage 1

    2024 Jun 10th

    OP Mainnet introduces fraud proofs and updates permissions.

    Learn more

    OP Mainnet starts using blobs

    2024 Mar 14th

    OP Mainnet starts publishing data to blobs.

    Learn more

    Network Upgrade #5: Ecotone

    2024 Mar 14th

    Optimism adopts EIP-4844.

    Learn more

    Fault Proof System is live on OP Goerli

    2023 Oct 3rd

    Fraud Proof system is live on Goerli.

    Learn more

    Mainnet migration to Bedrock

    2023 Jun 6th

    OP Mainnet, since Jun 2023 is running Bedrock.

    Learn more

    OP Stack Introduced

    2022 Oct 17th

    OP Stack, modular, open-sourced blueprint on how to build scalable blockchains.

    Learn more

    OP token airdrop

    2022 May 31st

    The first round of OP token airdrop.

    Learn more

    Mainnet for everyone

    2021 Dec 16th

    Whitelist got removed, there are no restrictions on who can transact with the network.

    Learn more

    OVM 2.0 is live

    2021 Nov 12th

    Network upgrade to OVM 2.0 and removal of fraud-proof system.

    Learn more

    Community Launch

    2021 Aug 19th

    All smart contracts allowed after prior approval.

    Learn more

    Mainnet Soft Launch

    2021 Jan 16th

    Only selected contracts like Synthetix and Uniswap are available.

    Learn more
    Risk summary
    Risk analysis
    Sequencer failureState validationData availabilityExit windowProposer failure

    State validation

    Fraud proofs (INT)

    Fraud proofs allow actors watching the chain to prove that the state is incorrect. Interactive proofs (INT) require multiple transactions over time to resolve.

    Data availability

    On chain

    All of the data needed for proof construction is published on Ethereum L1.

    Exit window

    None

    There is no window for users to exit in case of an unwanted regular upgrade since contracts are instantly upgradable.

    Sequencer failure

    Self sequence

    In the event of a sequencer failure, users can force transactions to be included in the project’s chain by sending them to L1. There is a 12h delay on this operation.

    Proposer failure

    Self propose

    Anyone can be a Proposer and propose new roots to the L1 bridge.

    Rollup stage
    OP MainnetOP Mainnet is a
    Stage 1
    Optimistic Rollup.
    Stage 0
    4 requirements met
    Stage 1
    5 requirements met
    Stage 2
    2 issues need fixing
    Learn more about Rollup stages
    Please keep in mind that these stages do not reflect rollup security, this is an opinionated assessment of rollup maturity based on subjective criteria, created with a goal of incentivizing projects to push toward better decentralization. Each team may have taken different paths to achieve this goal.
    Technology

    Fraud proofs ensure state correctness

    After some period of time, the published state root is assumed to be correct. For a certain time period, one of the whitelisted actors can submit a fraud proof that shows that the state was incorrect.

    • Funds can be stolen if no validator checks the published state. Fraud proofs assume at least one honest and able validator.

    1. DisputeGameFactory.sol - Etherscan source code, create() function
    2. FaultDisputeGame.sol - Etherscan source code, attack() function

    All data required for proofs is published on chain

    All the data that is used to construct the system state is published on chain in the form of cheap blobs or calldata. This ensures that it will be available for enough time.

    1. Derivation: Batch submission - OP Mainnet specs
    2. BatchInbox - Etherscan address
    3. OptimismPortal.sol - Etherscan source code, depositTransaction function
    State derivation
    Node software

    The rollup node is composed of two software components: op-node, implementing consensus related logic, and op-geth, implementing execution logic. The configuration file can be found here.

    Compression scheme

    Data batches are compressed using the zlib algorithm with best compression level.

    Genesis state

    Since OP Mainnet has migrated from the OVM to Bedrock, a node must be synced using a data directory that can be found here. To reproduce the migration itself, see this guide.

    Data format

    The format specification of Sequencer’s data batches can be found here.

    Operator

    The system has a centralized sequencer

    While forcing transaction is open to anyone the system employs a privileged sequencer that has priority for submitting transaction batches and ordering transactions.

    • MEV can be extracted if the operator exploits their centralized position and frontruns user transactions.

    1. Decentralizing the sequencer - OP Stack docs

    Users can force any transaction

    Because the state of the system is based on transactions submitted on-chain and anyone can submit their transactions there it allows the users to circumvent censorship by interacting with the smart contract directly.

    1. Sequencing Window - OP Mainnet Specs
    2. OptimismPortal.sol - Etherscan source code, depositTransaction function
    Withdrawals

    Regular exits

    The user initiates the withdrawal by submitting a regular transaction on this chain. When a state root containing such transaction is settled, the funds become available for withdrawal on L1 after 3d 12h. Withdrawal inclusion can be proven before state root settlement, but a 7d period has to pass before it becomes actionable. The process of state root settlement takes a challenge period of at least 3d 12h to complete. Finally the user submits an L1 transaction to claim the funds. This transaction requires a merkle proof.

    1. OptimismPortal.sol - Etherscan source code, proveWithdrawalTransaction function
    2. OptimismPortal.sol - Etherscan source code, finalizeWithdrawalTransaction function

    Forced exit

    If the user experiences censorship from the operator with regular exit they can submit their withdrawal requests directly on L1. The system is then obliged to service this request or halt all withdrawals, including forced withdrawals from L1 and regular withdrawals initiated on L2. Once the force operation is submitted and if the request is serviced, the operation follows the flow of a regular exit.

    1. Forced withdrawal from an OP Stack blockchain
    Other considerations

    EVM compatible smart contracts are supported

    OP stack chains are pursuing the EVM Equivalence model. No changes to smart contracts are required regardless of the language they are written in, i.e. anything deployed on L1 can be deployed on L2.

    1. Introducing EVM Equivalence
    Upgrades & Governance
    A diagram of the upgrades and governance
    A diagram of the upgrades and governance

    All contracts are upgradable by the SuperchainProxyAdmin which is controlled by a 2/2 multisig composed by the Optimism Foundation and a Security Council. The Guardian role is assigned to the Security Council multisig, with a Safe Module that allows the Foundation to act through it to stop withdrawals in the whole Superchain or blacklist dispute games in case of emergencies. The Security Council can remove the module if the Foundation becomes malicious. The single Sequencer actor can be modified by the FoundationMultisig_2 via the SystemConfig contract. The SuperchainProxyAdminOwner can recover dispute bonds in case of bugs that would distribute them incorrectly.

    At the moment, for regular upgrades, the DAO signals its intent by voting on upgrade proposals, but has no direct control over the upgrade process.

    Permissions

    The system uses the following set of permissioned addresses:

    Sequencer 0x6887…2985

    Central actor allowed to submit transaction batches to L1.

    SuperchainProxyAdmin 0x543b…fB04

    Admin of OptimismPortal, L1StandardBridge, L1ERC721Bridge, OptimismMintableERC20Factory, SuperchainConfig, DelayedWETH, DisputeGameFactory, AnchorStateRegistry and SystemConfig contracts.

    Used in:

    Project icon
    Project icon
    Project icon
    Project icon
    SuperchainProxyAdminOwner 0x5a0A…3d2A

    Owner of the SuperchainProxyAdmin. It can upgrade the bridge implementation potentially gaining access to all funds, and change any system component. It also controls the L2ProxyAdmin, meaning it can upgrade L2 system components. This is a Gnosis Safe with 2 / 2 threshold.

    Used in:

    Project icon
    Project icon
    Project icon
    Project icon
    SuperchainProxyAdminOwner participants (2) FoundationMultisig_1SecurityCouncilMultisig

    Those are the participants of the SuperchainProxyAdminOwner.

    GuardianMultisig 0x09f7…dAf2

    Address allowed to pause withdrawals or blacklist dispute games in case of an emergency. It is controlled by the Security Council multisig, but a module allows the Foundation to act through it. The Security Council can disable the module if the Foundation acts maliciously. This is a Gnosis Safe with 1 / 1 threshold. It uses the following modules: DeputyGuardianModule.

    Used in:

    Project icon
    Project icon
    Project icon
    Project icon
    GuardianMultisig participants (1) SecurityCouncilMultisig

    Those are the participants of the GuardianMultisig.

    FoundationMultisig_1 0x847B…9D92

    Member of the SuperchainProxyAdminOwner. This is a Gnosis Safe with 5 / 7 threshold.

    Used in:

    Project icon
    Project icon
    Project icon
    Project icon

    Those are the participants of the FoundationMultisig_1.

    SecurityCouncilMultisig 0xc281…Bd03

    Member of the SuperchainProxyAdminOwner. It implements a LivenessModule used to remove inactive (98d) members while making sure that the threshold remains above 75%. If the number of members falls below 8, the Foundation takes ownership of the Security Council. This is a Gnosis Safe with 10 / 13 threshold. It uses the following modules: LivenessModule.

    Used in:

    Project icon
    Project icon
    Project icon
    Project icon
    FoundationMultisig_2 0x9BA6…6b3A

    This address is the owner of the following contracts: SystemConfig. This is a Gnosis Safe with 5 / 7 threshold.

    Used in:

    Project icon
    Project icon
    Project icon
    Project icon

    Those are the participants of the FoundationMultisig_2.

    FeesCollector 0xa3d5…ADEa

    Address collecting sequencer, base and L1 fees from L2.

    The system consists of the following permissions on OP Mainnet:

    L2ProxyAdmin 0x4200…0018

    Admin of L2CrossDomainMessenger, GasPriceOracle, L2StandardBridge, SequencerFeeVault, OptimismMintableERC20Factory, L1BlockNumber, L2ERC721Bridge, L1Block, L1ToL2MessagePasser, OptimismMintableERC721Factory, BaseFeeVault, L1FeeVault, SchemaRegistry and EAS contracts.

    L2ProxyAdminOwner 0x6B1B…4E3b

    Owner of the L2ProxyAdmin. It can update the L2 bridge implementation potentially gaining access to all funds, and change any L2 system component. Assigned as the (aliased) L1 ProxyAdminOwner, meaning that upgrades has to be done through the L1 -> L2 bridge.

    MintManagerOwner 0x2A82…3a26

    Owner of the MintManager. It can change the OP token owner to a different MintManager and therefore change the inflation policy. This is a Gnosis Safe with 3 / 5 threshold.

    Those are the participants of the MintManagerOwner.

    Smart contracts
    A diagram of the smart contract architecture
    A diagram of the smart contract architecture

    The system consists of the following smart contracts on the host chain (Ethereum):

    The OptimismPortal contract is the main entry point to deposit funds from L1 to L2. It also allows to prove and finalize withdrawals. This contract stores the following tokens: ETH.

    Can be upgraded by:

    Upgrade delay: No delay

    The L1CrossDomainMessenger (L1xDM) contract sends messages from L1 to L2, and relays messages from L2 onto L1. In the event that a message sent from L1 to L2 is rejected for exceeding the L2 epoch gas limit, it can be resubmitted via this contract’s replay function.

    Can be upgraded by:

    Upgrade delay: No delay

    Implementation used in:

    Project icon
    Project icon
    Project icon
    Project icon

    The L1StandardBridge contract is the main entry point to deposit ERC20 tokens from L1 to L2. This contract can store any token. This contract can store any token.

    Can be upgraded by:

    Upgrade delay: No delay

    Implementation used in:

    Project icon
    Project icon
    Project icon
    Project icon

    The L1ERC721Bridge contract is used to bridge ERC-721 tokens from L1 to L2.

    Can be upgraded by:

    Upgrade delay: No delay

    Implementation used in:

    Project icon
    Project icon
    Project icon
    Project icon

    It contains configuration parameters such as the Sequencer address, the L2 gas limit and the unsafe block signer address.

    Can be upgraded by:

    Upgrade delay: No delay

    The dispute game factory allows the creation of dispute games, used to propose state roots and eventually challenge them.

    Can be upgraded by:

    Upgrade delay: No delay

    FaultDisputeGame 0xf691…33BA

    Logic of the dispute game. When a state root is proposed, a dispute game contract is deployed. Challengers can use such contracts to challenge the proposed state root.

    The MIPS contract is used to execute the final step of the dispute game which objectively determines the winner of the dispute.

    Contains the latest confirmed state root that can be used as a starting point in a dispute game.

    Can be upgraded by:

    Upgrade delay: No delay

    PreimageOracle 0xD326…8b34

    The PreimageOracle contract is used to load the required data from L1 for a dispute game.

    Contract designed to hold the bonded ETH for each dispute game. It is designed as a wrapper around WETH to allow an owner to function as a backstop if a game would incorrectly distribute funds. It is owned by the SuperchainProxyAdminOwner multisig.

    Can be upgraded by:

    Upgrade delay: No delay

    The SuperchainConfig contract is used to manage global configuration values for multiple OP Chains within a single Superchain network. The SuperchainConfig contract manages the PAUSED_SLOT, a boolean value indicating whether the Superchain is paused, and GUARDIAN_SLOT, the address of the guardian which can pause and unpause the system.

    Can be upgraded by:

    Upgrade delay: No delay

    Proxy used in:

    Project icon
    Project icon
    Project icon
    Project icon

    The system consists of the following smart contracts on OP Mainnet:

    The OP token contract. It is owned by the MintManager and can inflate the token supply by 2% annually.

    MintManager 0x5C4e…1005

    Controls the OP inflation rate, which is currently hardcoded to 2% annually. It is controlled by the MintManagerOwner multisig, which can also change the OP token owner and therefore the inflation rate.

    The L2CrossDomainMessenger (L2xDM) contract sends messages from L2 to L1, and relays messages from L1 onto L2 with a system tx. In the event that a message sent from L2 to L1 is rejected for exceeding the L1 gas limit, it can be resubmitted via this contract’s replay function.

    Can be upgraded by:

    Upgrade delay: No delay

    Contracts that provide L1 and L2 gas price information, which is derived permissionlessly from the L1 chain.

    Can be upgraded by:

    Upgrade delay: No delay

    The L2StandardBridge contract is the main entry point to deposit or withdraw ERC20 tokens from L2 to L1. This contract can store any token.

    Can be upgraded by:

    Upgrade delay: No delay

    Factory contract to create bridge compliant ERC20 IOU token representations of bridged L1 ERC20 tokens.

    Can be upgraded by:

    Upgrade delay: No delay

    OptimismMintableERC721Factory 0x4200…0017Implementation (Upgradable)Admin

    Factory contract to create bridge compliant ERC721 IOU token representations of bridged L1 ERC721 tokens.

    Can be upgraded by:

    Upgrade delay: No delay

    Simple contract that returns the latest L1 block number.

    Can be upgraded by:

    Upgrade delay: No delay

    The L2ERC721Bridge contract is the main entry point to deposit or withdraw ERC721 tokens from L2 to L1. This contract can store any token.

    Can be upgraded by:

    Upgrade delay: No delay

    Simple contract that returns information about the latest L1 block, which is derived permissionlessly from the L1 chain.

    Can be upgraded by:

    Upgrade delay: No delay

    Contract used internally by the L2CrossDomainMessenger to send messages to L1, including withdrawals. It can also be used directly as a low-level interface.

    Can be upgraded by:

    Upgrade delay: No delay

    Contract collecting base fees, which are withdrawable to the FeesCollector on L1.

    Can be upgraded by:

    Upgrade delay: No delay

    Contract collecting L1 fees, which are withdrawable to the FeesCollector on L1.

    Can be upgraded by:

    Upgrade delay: No delay

    Contract collecting sequencer fees, which are withdrawable to the FeesCollector on L1.

    Can be upgraded by:

    Upgrade delay: No delay

    Contracts to register schemas for the Ethereum Attestation Service (EAS).

    Can be upgraded by:

    Upgrade delay: No delay

    Contract containing the main logic for the Ethereum Attestation Service (EAS).

    Can be upgraded by:

    Upgrade delay: No delay

    Value Locked is calculated based on these smart contracts and tokens:

    Implementation used in:

    Project icon
    Project icon
    Project icon
    Project icon
    Escrow for DAI 0x4671…6C65

    DAI Vault for custom DAI Gateway managed by MakerDAO.

    Escrow for SNX 0x5Fd7…eF9f

    SNX Vault for custom SNX Gateway managed by Synthetix.

    wstETH Vault for custom wstETH Gateway. Fully controlled by Lido governance.

    The current deployment carries some associated risks:

    • Funds can be stolen if a contract receives a malicious code upgrade. Both regular and emergency upgrades must be approved by both the Security Council and the Foundation. There is no delay on regular upgrades.

    Knowledge nuggets