[OP Stack Deployment] Need help making L2 transactions gasless #622
-
Did you check the documentation?
Did you check for duplicate questions?
Issue DescriptionHey team, I need some dev support here. I am running my own custom L2 chain using OP stack and I followed this tutorial - I am running my custom L2 with Holesky L1 testnet locally. So far, everything is up and running smoothly where I can create and submit transactions on my custom L2 and they work successfully. Now I want to modify it to set the gas price to zero on my L2 so that all transactions would be gasless on L2. More specifically, I want to set the L2 Execution Gas Fee to zero by setting the L2 Gas Price to zero. Is that possible? Can someone guide me on what fields or configurations should I modify to achieve this locally? Thank you in advance :D LogsLogs screenshot -
Additional InformationNo response FeedbackNo response |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
|
This one is tricky. The OP Stack uses the same EIP-1559 gas market as Ethereum. So you would need to modify the execution layer to do this on the L2. Here's a high-level doc on modifying the EL and something to get you started: https://docs.optimism.io/builders/chain-operators/hacks/execution |
Beta Was this translation helpful? Give feedback.
-
|
Hi everyone, Achieving this would involve modifying the L2 execution layer to adjust the gas model or implementing a custom gas token mechanism where the sequencer covers L1 costs. Before diving deeper, I wanted to confirm: is there already an existing "hack" or workaround for this that someone in the community might have implemented? Any pointers or shared experiences would be greatly appreciated! Thanks in advance for your help! |
Beta Was this translation helpful? Give feedback.

This one is tricky. The OP Stack uses the same EIP-1559 gas market as Ethereum. So you would need to modify the execution layer to do this on the L2. Here's a high-level doc on modifying the EL and something to get you started: https://docs.optimism.io/builders/chain-operators/hacks/execution