Home > Web3.0 > body text

What is the Gas of OP chain? OP public chain gas fee introduction

WBOY
Release: 2024-06-19 12:26:48
Original
311 people have browsed it

In daily life, people often use Alipay, WeChat, and banks to withdraw cash, but some will charge a certain handling fee when transferring money, which corresponds to the Gas fee in the blockchain. OP chain has become very popular recently because of the handling fee issue. As one of the hottest public chains, more and more people have noticed that the gas fee of OP chain is not low. In the past, many investors would buy OP coins as OP The gas fee of the chain.

What is the Gas of OP chain? OP public chain gas fee introduction

What is the Gas of the OP chain?

The Gas of the OP chain is Ethereum. Regarding the Gas fee issue, since the Optimism business process has the step of storing data to Ethereum, the Gas fee of each transaction = Layer1 part + Layer2 part, and Arbitrum and Metis and other OP Rollup solutions are no different.

The Layer2 part mainly involves the cost of the Sequencer node executing transactions. Since Sequencer’s TPS limit is extremely high and Optimism currently has few users, its local Gas Price is extremely low. The calculation formula is: L2 Gas fee = L2 Gas Used×L2Gas Price.

The more complex the execution steps of a transaction (options, etc.), the more costs can be saved on Optimism. For example, the last option operation on Ethereum that cost $100 only cost about $1.5 on Optimism, which is only 1/60; an ordinary transfer on Ethereum costs $3, but Optimism may cost $0.3, which is 1/10.

As for the Gas fee of Layer 1, the formula = proportional coefficient × (fixed overhead + storage overhead). Among them, the fixed overhead comes from the process of packaging data and cross-domain transmission, the storage overhead is the Gas generated by storing data on ETH, and the proportional coefficient is officially set by Optimism, mainly to reserve a part of the funds to prevent the ETH main network Gas prices surged, making it impossible to successfully store data on the chain.

Currently, the fixed overhead Gas for each transaction on Optimism is 2100. Optimism officials stated that as the user scale expands in the future and the number of transactions collected in each batch increases, the fixed overhead will be further reduced. When storing batches on Layer1, Sequencer will pass the batch information to the CTC contract in the form of text data Calldata. Generally speaking, text data is only used for storage and will not be used to perform operations. Compared with ordinary contract calls, this step saves a lot of gas.

What is the OP chain?

Optimism (OP) is Ethereum’s layer 2 scaling solution. It aims to reduce the load on the Ethereum network and is designed to be equivalent to the Optimism Rollup chain of the Ethereum Virtual Machine (EVM).

The main feature of Optimism is to make transactions on Ethereum applications very cheap. By moving transactions from a blockchain to another blockchain, miner fees are greatly reduced and throughput is increased. . At the same time, it provides Ethereum developers the opportunity to use all the tools available on Ethereum without making changes.

Optimism uses optimistic rollups technology, which can "aggregate" a large amount of transaction data into a batch of data on Ethereum, thereby charging only one transaction fee. This way, transactions are processed faster and cheaper while relying on the security of Ethereum.

The above is the detailed content of What is the Gas of OP chain? OP public chain gas fee introduction. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:jb51.net
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!