Transactions

Transactions, which change the state of the EVM, need to be broadcast to the whole network. Any node can broadcast a request for a transaction to be executed on the EVM; after this happens, a validator will execute the transaction and propagate the resulting state change to the rest of the network.

Transaction Fees on Scroll

Compared to Ethereum mainnet, Scroll introduces some new dimensions to transaction fee calculation to do this. The final cost of a transaction is constructed from several parts:

  • L2 fee

    • Calculated in the same manner as on the L1, equaling gas_price * gas_used

  • L1 fee

    • This additional fee covers sending data to L1 for data availability. Transactions initiated on the L1 do not pay this fee.

    • It is calculated based on the size of the transaction’s calldata

    • ETH is automatically deducted from the user’s balance on Scroll for the fee

At a high level, the L2 fee is the cost of executing your transaction on the L2 sequencer, and the L1 fee is the cost of committing that transaction onto L1.

Table Columns

Last updated