· four exchange APIs · rebuilt daily

The finding
A Layer 2 transaction fee is the sum of local execution gas and L1 data publication gas.
Having layer 2 fees explained requires separating local execution compute from base-layer batch publication.
Bridge withdrawals require a 7-day challenge window on optimistic rollups before funds clear to L1.
Rollups process transactions off-chain on a single sequencer, calculate state updates, and publish the compressed transaction payload back to the Layer 1 base chain. Because execution occurs off-chain, the computing cost per transaction is low. However, the rollup must pay Layer 1 gas to store its data payload permanently on the settlement chain.
The total cost paid by an end user to execute a transaction on a Layer 2 network follows a two-part equation:
Total L2 Fee = (L2 Gas Used L2 Gas Price) + (L1 Data Gas Used L1 Base Fee)
The first term covers local execution on the rollup virtual machine, including memory allocation, state reads, and storage writes. The second term covers the overhead incurred when the sequencer posts the transaction batch to Layer 1. On networks experiencing mainnet congestion, Layer 1 data publication can represent more than 90 percent of the total fee charged for a Layer 2 transaction.
Worth knowing
The sequencer pays Layer 1 base fees in advance when committing a batch, then recovers that expense from users by charging an L1 data fee on every Layer 2 execution.
Before consensus upgrades introduced dedicated data blobs, rollups published transaction batches directly inside Layer 1 execution calldata. Calldata is permanently accessible to all smart contracts on the base layer and competes directly with regular L1 transfers for execution gas. This mechanism tied Layer 2 transaction fees directly to Layer 1 execution gas price spikes.
Data blobs isolate rollup batch storage into dedicated data blocks attached to consensus layer payloads. Blobs do not compete with L1 smart contract execution gas. Instead, blob space operates under an independent fee market calibrated specifically for temporary data availability.
The cost of publishing rollup data using dedicated blobs is determined by a separate pricing mechanism:
Blob Fee = Blob Gas Used * Blob Base Fee
Because consensus nodes prune blob data after a temporary storage window, the per-byte cost of blob space is significantly lower than permanent calldata storage. When total blob utilization remains below target capacity, the blob base fee remains at its floor, driving the Layer 1 settlement component of Layer 2 fees down close to zero.
Moving assets between Layer 1 and Layer 2 relies on smart contract bridges. Depositing funds from Layer 1 to Layer 2 completes within minutes because the Layer 2 sequencer registers the L1 deposit event as soon as the base layer reaches finality. Returning assets from Layer 2 back to Layer 1 follows a different timeline on optimistic rollups.
Optimistic rollups assume state assertions submitted by the sequencer are correct without executing every transaction on Layer 1 upfront. To prevent invalid state transitions or unauthorized withdrawals, the canonical bridge contract enforces a mandatory 7-day challenge window before releasing assets on Layer 1.
Where this goes wrong
Third-party liquidity bridges allow users to bypass the 7-day delay by paying a fee to liquidity providers, but canonical rollup bridge contracts cannot release funds before the challenge window closes.
During this 7-day challenge period, network verifiers monitor published transaction batches. If a verifier detects an incorrect state root, it submits a fraud proof to the Layer 1 bridge contract. If Layer 1 re-execution validates the fraud proof, the invalid state update is discarded and the sequencer's staked collateral is slashed. The 7-day delay ensures verifiers have sufficient time to detect faults, compute proofs, and broadcast transactions even during periods of extreme L1 network congestion.
While Layer 2 network fees pay for transaction execution and batch data settlement, holding positions on centralized derivative exchanges incurs venue-specific execution fees and funding rates. Exchange execution fees apply directly to the nominal position value upon order execution.
The table below details published futures maker and taker fee schedules across major trading venues:
| Exchange | Futures Maker Fee | Futures Taker Fee | Spot Maker Fee | Spot Taker Fee |
|---|---|---|---|---|
| Bitget | 0.0002 | 0.0003 | 0.0010 | 0.0010 |
| Bybit | 0.0002 | 0.00055 | 0.0010 | 0.0010 |
| MEXC | 0.0000 | 0.0002 | 0.0000 | 0.0005 |
| OKX | 0.0002 | 0.0005 | 0.0008 | 0.0010 |
For market orders, fee tiers vary significantly across venues. Entering and exiting a position on MEXC costs 0.0002 per trade side in futures taker fees, whereas Bybit charges 0.00055 per trade side. On a nominal position size of $100,000, round-trip taker fees equal $40 on MEXC compared to $110 on Bybit.
Perpetual futures positions held open across settlement timestamps incur funding fee adjustments every 8 hours. The table below lists active 8-hour funding rates for ETH and BTC across the same venues:
| Asset | Bitget Rate | OKX Rate | MEXC Rate | Bybit Rate | 8h Spread |
|---|---|---|---|---|---|
| ETH | -0.0006% | -0.0004% | +0.0057% | +0.0100% | 0.0106% |
| BTC | +0.0062% | +0.0033% | +0.0100% | +0.0100% | 0.0067% |
A trader holding a long ETH position on Bitget earns a funding credit of 0.0006% per 8 hours due to the negative rate. The same long ETH position held on Bybit incurs a funding charge of 0.0100% per 8 hours. Over 24 hours (three intervals), the funding fee spread between Bitget and Bybit on a long ETH position amounts to 0.0318% of nominal position size.
Layer 2 fees are calculated by adding local rollup execution gas costs to Layer 1 data publication gas costs. The execution component covers off-chain computation, while the data component pays for publishing batch state updates to the settlement layer.
EIP-4844 introduced dedicated data blobs, separating rollup batch storage from standard Layer 1 execution calldata. Moving batch submission into an independent blob storage market drastically reduced the L1 publication cost component of Layer 2 fees.
Withdrawing through a canonical optimistic rollup bridge takes seven days to provide verifiers sufficient time to detect invalid state transitions and submit fraud proofs to Layer 1. This dispute window ensures malicious state updates are challenged before L1 bridge assets can be released.
If a sequencer submits an invalid state root, verifiers broadcast a fraud proof containing the disputed batch data to the Layer 1 bridge contract. If Layer 1 verification confirms the error, the invalid state update is discarded and the sequencer loses its staked collateral.