What makes the total gas cost per L2 batch?

Created by Deepanshu Rathor, Modified on Mon, 19 Feb at 4:29 PM by Deepanshu Rathor


The minimum gas price that will be accepted by the sequencer will depend on the TX. The sequencer will have a special call to get that price given for the transaction. This price will depend on the size of the data (data availability) and the usage of the zkCounters.

Said that and for Ethereum compatibility, the JSON-RPC call getGasPrice will return a gasPrice that will warranty that most of the TXs will fit. This price will be lower that the L1 price.

Users have an incentive to use the specific API to reduce the costs.

This getGastPricePerTX API is not implemented yet.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article