{"id":126041,"date":"2023-11-16T20:06:56","date_gmt":"2023-11-16T20:06:56","guid":{"rendered":"https:\/\/www.techopedia.com\/?post_type=definition&p=126041"},"modified":"2023-11-16T20:55:51","modified_gmt":"2023-11-16T20:55:51","slug":"rollup","status":"publish","type":"definition","link":"https:\/\/www.techopedia.com\/definition\/rollup","title":{"rendered":"Rollup"},"content":{"rendered":"
A rollup is a layer two<\/a> (L2) blockchain<\/a> that processes transactions away from the main blockchain to reduce transaction costs and increase throughput on the main chain.\u00a0<\/span><\/p>\n Rollups are scaling solutions that minimize the computational load on the main layer one<\/a> (L1) chain. Rollup technology has become so popular that the leading smart contract<\/a> blockchain Ethereum<\/a> has pivoted its scaling roadmap from sharding to a rollup-centric one<\/a>.<\/span><\/p>\n Rollups alleviate congestion, increase throughput, and reduce gas fees<\/a> on the L1 blockchain by processing and verifying transactions off-chain. <\/span><\/p>\n In return, rollups rely on the L1 chain for security<\/a>. They post transaction data and proofs to the L1 chain to ensure that the roll-up transactions are verifiable and censorship-resistant.<\/span><\/p>\n Rollup users pay gas fees denominated in the L1 native currency. For example, gas fees on Ethereum rollup called Base are paid in ether (ETH) \u2013 the native token of Ethereum L1.<\/span><\/p>\n Here is how rollups work:<\/span><\/b><\/p>\n There are primarily two main types of rollup solutions: optimistic rollup and zk rollup<\/a>.<\/span><\/p>\n Optimistic rollups assume that all transactions are valid by default unless proven otherwise.\u00a0<\/span><\/p>\n Optimistic rollups batch transactions off-chain and post transaction data to the L1 as call data. These rollups do not submit any proof of the validity of the transactions. Instead, it allows users a time window called a \u201cchallenge window,\u201d during which anyone can challenge the validity of a rollup transaction by computing fraud proof.<\/span><\/p>\n If the fraud proof succeeds, transactions are re-executed, and the state of the rollup is updated accordingly. The sequencer responsible for including the incorrectly executed transaction receives a penalty.<\/span><\/p>\n The biggest disadvantage of optimistic rollups is that users cannot withdraw their tokens from the rollup chain until the challenge period is over. The challenge period typically lasts seven days<\/span><\/p>\n ZK rollup does not assume the validity of transactions. Instead, they verify the transactions and produce cryptographic proofs about the transaction’s validity. These proofs are submitted to the L1 chain.<\/span><\/p>\n These rollups interact with the L1 chain via two smart contracts. The main smart contract stores data on rollup blocks and monitors state updates (same as Optimistic rollups). The second smart contract verifies the submitted ZK proofs.<\/span><\/p>\n Proofs are considered sufficient to assure the validity of transactions, therefore, ZK rollups may not be required to submit transaction data to the L1 chain. However, it is considered safe practice to make historic transaction data available so that anyone can independently verify the state of the L2 chain.\u00a0<\/span><\/p>\n Data availability solutions are being developed where another blockchain is used to store historical transaction data.<\/span><\/p>\n An advantage that ZK rollups hold over-optimistic rollup is that users do not have to wait to withdraw their tokens from the rollup.\u00a0<\/span><\/p>\n As for its disadvantages, ZK rollups may encourage centralized control as producing validity proofs requires specialized hardware.<\/span><\/p>\n Here are examples of popular rollup blockchains that are currently operational:<\/span><\/p>\n Rollup technology is slowly taking center stage as the cryptocurrency industry strives toward its holy grail of mass adoption. <\/span><\/p>\n Ethereum\u2019s pivot to a rollup-centric scaling roadmap has diverted the brightest minds of the industry towards innovation in the rollup space. <\/span><\/p>\n It will be exciting to see how new rollup solutions not only address high gas fees and low network throughput but community governance and decentralization<\/a> risks as well.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":" What is a Rollup? A rollup is a layer two (L2) blockchain that processes transactions away from the main blockchain to reduce transaction costs and increase throughput on the main chain.\u00a0 Rollups are scaling solutions that minimize the computational load on the main layer one (L1) chain. Rollup technology has become so popular that the […]<\/p>\n","protected":false},"author":286557,"featured_media":127156,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"_acf_changed":false,"_lmt_disableupdate":"no","_lmt_disable":"","om_disable_all_campaigns":false,"footnotes":""},"definitioncat":[271,272],"class_list":["post-126041","definition","type-definition","status-publish","format-standard","has-post-thumbnail","hentry","definitioncat-blockchain","definitioncat-cryptocurrency"],"acf":[],"yoast_head":"\nHow Do Rollups Work?<\/span><\/h2>\n
\n
Types of Rollups<\/span><\/h2>\n
<\/p>\n
Optimistic Rollup<\/h3>\n
Zero-Knowledge Rollup (ZK Rollups)<\/h3>\n
Rollup Examples<\/span><\/h2>\n
\n
The Bottom Line<\/span><\/h2>\n