Gas & Fees

  • OP Stack fees include L2 execution gas plus L1 data costs.

  • For programmatic estimates, use your SDK’s helpers and/or read from GasPriceOracle.

viem example

import { parseEther } from 'viem'
const gas = await client.estimateTotalGas({ to: '0x...', value: parseEther('0.1') })

Last updated