1. Abstract Rollup is a scalability solution for Ethereum Layer 2, aiming to enhance the transaction throughput of Ethereum by processing transactions off-chain. Optimistic Rollup, as the name1. Abstract Rollup is a scalability solution for Ethereum Layer 2, aiming to enhance the transaction throughput of Ethereum by processing transactions off-chain. Optimistic Rollup, as the name
新手学院/Market Insights/Hot Topic Analysis/Optimistic ...al Analysis

Optimistic Rollup: A Technical Analysis

Jul 16, 2025MEXC
0m
4
4$0.022636-3.34%
7
7$----%
Solayer
LAYER$0.07354+0.27%


1. Abstract


Rollup is a scalability solution for Ethereum Layer 2, aiming to enhance the transaction throughput of Ethereum by processing transactions off-chain. Optimistic Rollup, as the name suggests, employs an optimistic mechanism. Optimistic Rollup assumes that all transactions on Layer 2 are valid and compresses multiple transactions into a single submission to Ethereum. After the submission, there is a one-week period during which any user on the chain can challenge the authenticity of transactions. If fraud is detected during the state update, the challenger can receive a reward. Undoubtedly, Optimistic Rollup is the most practical and innovative solution for Ethereum Layer 2, and its technical details deserve further exploration. This article will provide a brief analysis of the implementation details of Optimistic Rollup and delve into its technical principles.

2. How Optimistic Rollup Works


On Optimistic Rollup Layer 2, user transactions are sent to the operators of Optimistic Rollup nodes. These nodes act as "validators" and "aggregators," responsible for aggregating and validating transactions. They compress multiple transactions' data into a single transaction, which, after compression, enters the transaction pool of Ethereum Layer 1, just like any other transaction. Finally, the nodes will receive and process the transactions and publish blocks on the Ethereum blockchain. Anyone can become an Optimistic Rollup node, but similar to the Proof-of-Stake (PoS) mechanism, nodes are required to provide a security deposit to the Ethereum network as a guarantee of their integrity.

During block submission, the nodes do not verify the legitimacy of state transitions. However, they provide a one-week "fraud proof" challenge period for the block. If no node or user challenges the legitimacy of the block during this period, the block will be confirmed. If a successful "fraud proof" challenge is made, the node that published the block will lose its security deposit. To incentivize the detection of fraudulent behavior, the security deposit is rewarded to the user who successfully proves the fraud. Through this approach, Optimistic Rollup utilizes the incentive measures of cryptographic economics to ensure the honesty and reliability of nodes.

3. How Data Compression is Achieved


A regular Ethereum transaction, such as sending ETH, typically consumes around 110 bytes. However, sending ETH on Optimistic Rollup only consumes approximately 12 bytes. To achieve this, Optimistic Rollup employs simpler advanced encoding techniques.

In Optimistic Rollup Layer 2 transactions, the nonce is completely omitted and instead recovered from the pre-state. Gas-related information like Gasprice and Gas is moved out of Layer 2 transactions. The To and From fields no longer require Ethereum addresses; instead, a subtree is added to the state to store the mapping of indices to addresses. Value can be stored using scientific notation, requiring only 3 digits for transfers. As for signatures, transactions within a batch can be aggregated using BLS aggregate signatures, reducing the storage consumption for each individual transaction signature. This aggregated signature can batch-check the entire set of messages and senders. Additionally, these transaction data are stored in the Calldata field on-chain, which has a relatively low gas cost.

The uploaded data includes not only the aforementioned transaction data and content, but also the Merkle tree root before and after batch transactions (including state data such as account, balance, and contract code, thus known as the state root). It also includes data used to prove (or verify) the legitimacy of state transitions. These compression techniques are crucial for achieving scalability using Optimistic Rollup. Currently, after compression, Optimistic Rollup can provide throughput that is over 30 times higher than Ethereum.

4. Submitting Data to Ethereum


Optimistic Rollup deploys a specific smart contract called the Rollup contract on Ethereum Layer 1. This contract is responsible for managing the state of the Rollup, including tracking user balances, handling deposits, withdrawals, and dispute resolution. In Optimistic Rollup, transactions are collected and aggregated by nodes off-chain, bundling multiple transactions into a "Rollup block." This block contains transaction content and the Merkle tree root of the new account state.

Later on, nodes publish the aggregated data as calldata on Ethereum. Calldata is an unmodifiable and non-persistent area within smart contracts, similar to internal storage. As part of the history log of blockchain, calldata is not stored as part of Ethereum's state. As calldata doesn't involve any portion of Ethereum's state, it is more cost-effective to store data on-chain using calldata.

5. State Commitment


As mentioned before, the uploaded data includes not only the transaction content but also the Merkle tree root before and after the transaction. The Merkle tree root represents the Optimistic Rollup state at any given point in time, including accounts, balances, contract codes, etc. It is also known as the "state tree" and serves as the organizational form of the Optimistic Rollup state. The leaf nodes of the Merkle tree represent the account states, and the root node represents the final value. Changes in the Layer 2 transactions of Optimistic Rollup result in updates to the account states, which in turn affect the information of the leaf nodes, ultimately leading to changes in the root hash value. The Layer 2 operator maintains the state tree of Layer 2 accounts locally, recording the root hash values before and after the batch transactions occur, and uploads this root hash value when uploading the batch transactions.

This Merkle tree root (state root) references the latest state of the Rollup, undergoes hashing, and is stored in the Rollup contract. Each on-chain state transition generates a new Rollup state, and nodes submit this state by computing the new state root.

When nodes publish a block, they need to submit both the old state root and the new state root. If the old state root matches the existing state root in the on-chain contract, the latter is discarded and replaced with the new state root. Nodes also need to submit the Merkle tree root for the batch of transactions itself. This allows anyone to prove that the transactions are included in the block by providing a Merkle tree proof. The Merkle tree root is crucial for proving the state changes in Optimistic Rollup.

6. Fraud Proof


Optimistic Rollup allows anyone to provide transaction information and state transition information, and publish blocks without providing validity proofs. To ensure the security of the Ethereum blockchain, Optimistic Rollup has established a one-week window during which users can raise doubts about the blocks (including state transitions and other information).

If someone raises a doubt, the Optimistic Rollup protocol initiates fraud proof computation. By replaying the transactions that resulted in state transitions on the chain, a new state root is computed. This computed state root is then compared with the state root proposed by the sequencer. If other nodes or users discover a discrepancy between the final block state and the state proposed by the node, the fraud proof challenge is successful, and the state transition is canceled. At the same time, the challenging node is penalized, and their bond is confiscated and awarded to the challenger.

Re-executing transactions on Ethereum to detect fraud requires publishing state commitments for individual transactions and adding data that must be published on-chain. Replaying transactions also incurs significant gas costs. Currently, the challenge period for Optimistic Rollup is one week, but due to capital efficiency concerns, the community is actively discussing whether to shorten the challenge period.

7. OVM Virtual Machine


Optimistic Rollup not only supports the scalability of Ethereum but also incorporates the entire functionality of Ethereum smart contracts into the Layer2 framework, providing a Turing-complete OVM virtual machine for the development and deployment of dApps.

The OVM virtual machine is a feature-complete execution environment that is fully compatible with the Ethereum EVM virtual machine and designed for Layer2 systems. With the OVM virtual machine, developers can perform all Ethereum on-chain operations on the Rollup chain and interact with the blockchain through APIs. Additionally, the OVM virtual machine simplifies the process of porting dApps to Layer2. Instead of deploying various Layer2 scaling solutions, project teams can simply integrate with OVM and utilize its various Layer2 structures.

8. Conclusion


There are two Layer2 networks developed based on the Optimistic Rollup protocol: Optimism and Arbitrum. Currently, Optimism and Arbitrum are the largest Layer 2 ecosystems in the Ethereum space, with a total locked value of $4 billion and still experiencing significant growth. Many well-known projects have also joined the Optimistic Rollup camp, such as UniSwap, SushiSwap, and others.

However, Optimistic Rollup is not the only player on the field and faces competition from ZK Rollup. As mentioned earlier, Optimistic Rollup relies on fraud proofs, where the system optimistically believes in the correctness of transaction data and ensures transaction validity through the economic logic of fraud challenges. On the other hand, ZK Rollup is a scalability solution based on zero-knowledge proofs, where off-chain transactions are processed in batches and cryptographic validity proofs are generated to verify the authenticity of each batch of transactions. The superiority of one over the other requires further examination over a longer period of time.

市场机遇
4 图标
4实时价格 (4)
$0.022636
$0.022636$0.022636
+4.74%
USD
4 (4) 实时价格图表

热门加密动态

查看更多
9月18日美股盘前报告:英特尔超预期7.08个百分点,点阵图4.1%制约AI算力估值

9月18日美股盘前报告:英特尔超预期7.08个百分点,点阵图4.1%制约AI算力估值

上一个交易日是 9 月 17 日(周四)。三大指数集体反弹:纳斯达克综合涨 1.69% 收 26,418.30 点、标普 500 涨 1.13% 收 7,637.05 点、道琼斯工业涨 0.61% 收 51,778.04 点——周三加息当天先跌,周四全数收回还有余。今日焦点是英特尔(INTC),单日涨 7.67% 收 108.80 美元,市值一天多出 391 亿美元;当天纳斯达克半导体行业均涨只有

Generac股价暴涨18%背后的真相:亚马逊24亿美元数据中心订单解析

Generac股价暴涨18%背后的真相:亚马逊24亿美元数据中心订单解析

概述 随着生成式人工智能基础设施的电力瓶颈全面爆发,华尔街的投资视线已从芯片算力快速转向底层电力设备供应。备用电源与微电网制造龙头 Generac Holdings 股票在 纽约证券交易所 单日暴涨超过 18%,盘中交易量放大至日常均值的三倍以上。推动这一轮估值重构的核心催化剂,是云计算巨头 Amazon 旗下云计算部门 Amazon Web Services 与 Generac 达成了总额预计达

美联储三年来首次加息25基点,点阵图显示紧缩周期延长【MEXC Alpha Trader-行业日报(2026.09.18)】

美联储三年来首次加息25基点,点阵图显示紧缩周期延长【MEXC Alpha Trader-行业日报(2026.09.18)】

一、宏观与市场情绪 行情数据:BTC $76,685(+0.47%)|ETH $2,456(+1.26%)|SOL $102(+3.25%) 市场情绪:资金费率 +0.0066%|恐惧贪婪指数 56(贪婪) 货币政策:美联储全票通过加息25基点至3.75%-4%,为2023年7月以来首次加息,点阵图显示18名官员中16人认为今年仍需至少再加息一次,2026年底利率预期中值升至4.1%。解读:全票通

9 月 17 日美股盘前报告:Cipher涨10.80%,3.2 GW电网名额悬而未决;联储加息25个基点

9 月 17 日美股盘前报告:Cipher涨10.80%,3.2 GW电网名额悬而未决;联储加息25个基点

上一个交易日是 9 月 16 日(周三)。美联储把联邦基金利率区间上调到 3.75%–4.00%,幅度 25 个基点,以 12 比 0 一致通过,这是 2023 年以来第一次加息。 声明写明通胀仍然偏高,加息是为了让通胀更及时地回到 2%。三大指数当天集体收跌,但跌幅分得很开:道琼斯工业跌 1.21% 收 51,461.90 点、标普 500 跌 0.43% 收 7,553.33 点、纳斯达克综合

热门新闻

查看更多
特斯拉2026年第二季度财报日期:发布时间、网络直播及关键指标

特斯拉2026年第二季度财报日期:发布时间、网络直播及关键指标

特斯拉2026年第二季度财报定于2026年7月22日(星期三)美国股市收盘后发布,管理层计划于美国中部时间下午4:30 / 东部时间下午5:30主持实时Q&A网络直播。第二季度的更新和网络直播将通过特斯拉的投资者关系网站提供,并在电话会议后提供存档重播。 这不仅仅是另一个普通的特斯拉财报日。特斯拉已经报告了超预期的交付季度:在2026年第二季度,公司生产了451,758辆汽车,交付了480,126

特斯拉2026年第一季度财报回顾:交付量反弹,但利润率质量仍是真正的考验

特斯拉2026年第一季度财报回顾:交付量反弹,但利润率质量仍是真正的考验

特斯拉于2026年4月22日美国股市收盘后公布了其2026年第一季度的财务业绩。该公司本季度交付了358,023辆汽车,创造了224亿美元的总营收,并报告归属于普通股股东的GAAP净利润为4.77亿美元。总GAAP毛利率提升至21.1%,而营业利润率达到4.2%。 核心信号不仅在于特斯拉的交付量从去年同期的疲软基数中恢复。更重要的问题是:更高的交付量、FSD相关营收、更低的单车成本以及改善的汽车毛

苹果 2026 财年第二季度财报回顾:iPhone 营收与服务业务增长维持 EPS 预期

苹果 2026 财年第二季度财报回顾:iPhone 营收与服务业务增长维持 EPS 预期

苹果于 2026 年 4 月 30 日发布了 2026 财年第二季度财报,涵盖截至 2026 年 3 月 28 日的季度。总营收达到 1112 亿美元,同比增长 17%,摊薄后每股收益(EPS)增长 22% 至 2.01 美元。苹果表示,该季度创下了公司 3 月份季度的总营收、iPhone 营收和 EPS 纪录,同时服务业务营收也创下历史新高。 这不仅仅是一份常规的硬件周期财报。苹果第二季度的业绩

Coldcard Mk3 警告紧随 3800 万美元 Bitcoin 被扫荡事件,但原因仍未确认

Coldcard Mk3 警告紧随 3800 万美元 Bitcoin 被扫荡事件,但原因仍未确认

比特币硬件钱包制造商Coinkite已警告用户,Coldcard设备存在种子生成问题,影响从4.0.1版本起的所有Mk3固件版本。该警告是在安全研究人员调查一起涉及594.48 BTC(约合3,800万美元)的协同转移事件时发出的。然而,目前尚无公开的技术证据证实Coldcard的问题导致了这些转账。

相关文章

查看更多
CPI超预期引爆“加息押注”,美债收益率破5%创19年新高——市场在定价什么?| MEXC Alpha Trader 投研周报

CPI超预期引爆“加息押注”,美债收益率破5%创19年新高——市场在定价什么?| MEXC Alpha Trader 投研周报

2026年9月第2周统计周期:2026年9月9日 – 9月15日数据截止:2026年9月15日核心叙事过去一周,加密市场在通胀数据、加息预期与地缘政治的三重压制下持续承压。BTC从78,000美元附近起步,在CPI超预期与美债收益率突破5%的双重压制下逐步走低,9月11日一度下探至76,000美元附近,随后反弹至79,800美元。截至9月15日,比特币在77,000-78,000美元区间弱势整理。

MEXC Alpha Trader 投研周报 | 非农与ADP罕见背离,市场剧烈拉锯——加息还是暂停?

MEXC Alpha Trader 投研周报 | 非农与ADP罕见背离,市场剧烈拉锯——加息还是暂停?

2026年9月第1周统计周期:2026年9月2日 – 9月8日数据截止:2026年9月8日核心叙事过去一周,加密市场在宏观数据与地缘政治的双重驱动下剧烈拉锯。BTC在76,000-82,000美元区间宽幅震荡,最终回落至78,000美元附近,周初的恐慌情绪与周中的强劲反弹交替上演。非农“爆表”重燃加息预期,9月加息概率升至60%。 9月4日,美国劳工统计局公布8月非农就业报告——新增非农就业16.

MEXC Alpha Trader 投研周报 | 沃什鹰派首秀重定市场预期,加息概率飙至56%——风险资产集体承压

MEXC Alpha Trader 投研周报 | 沃什鹰派首秀重定市场预期,加息概率飙至56%——风险资产集体承压

2026年8月第4周统计周期:2026年8月26日 – 9月1日数据截止:2026年9月1日核心叙事过去一周,加密市场经历了从狂欢到恐慌的戏剧性转折。周初BTC尚在80,000美元附近高位震荡,但随着杰克逊霍尔全球央行年会上美联储主席沃什释放超预期鹰派信号,市场情绪急转直下,BTC一度跌破77,400美元,单日跌幅逾3%。截至9月1日,比特币在77,800-78,000美元区间震荡整理。杰克逊霍尔

MEXC Alpha Trader 投研周报 | “美元贬值交易”引爆市场,BTC与黄金同步突破——新范式开启还是短期狂欢?

MEXC Alpha Trader 投研周报 | “美元贬值交易”引爆市场,BTC与黄金同步突破——新范式开启还是短期狂欢?

2026年8月第3周统计周期:2026年8月19日 – 8月25日数据截止:2026年8月25日核心叙事过去一周,加密市场经历了一轮罕见的单边暴涨行情。比特币从周初约64,000美元起步,连续突破65,000、70,000、75,000和80,000美元四大整数关口。截至8月25日亚洲时段,BTC最高触及80,908美元,单周涨幅约23%,创近三年来最大单周涨幅。本轮上涨的叙事逻辑与以往截然不同。

注册MEXC账号
注册 & 获得高达10,000 USDT奖金
您的稳定币真的安全吗?
您的稳定币真的安全吗?您的稳定币真的安全吗?
了解 USDT、USDC、OpenUSD 及 USD1 的风险