Skip to content

Commit

Permalink
feat(differences): Add EIP-1559 parameters
Browse files Browse the repository at this point in the history
Closing: DEVRL-1063
  • Loading branch information
qbzzt committed Jul 18, 2023
1 parent 3c2e76a commit 4a87cd2
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/docs/developers/build/differences.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,25 @@ See the full list of [custom JSON-RPC methods](./json-rpc.md) for more informati

[Transaction costs on OP Mainnet](./transaction-fees.md) include an [L2 execution fee](./transaction-fees.md#the-l2-execution-fee) and an [L1 data fee](./transaction-fees.md#the-l1-data-fee).

### EIP 1559

The L2 execution fee is calculated using [EIP-1559](https://notes.ethereum.org/@vbuterin/eip-1559-faq). The cost of a unit of gas is composed of two components:

- **Base fee**: This fee is the same for all transactions in a block. It varies between blocks based on the difference between the actual size of the blocks (which depends on the demand for block space) and the target block size. When the block uses more gas than the target block size the base fee goes up to discourage demand. When the block uses less gas than the target block size the base fee goes down to encourage demand.
- **Priority fee**: This fee is specified in the transaction itself and varies between transactions. Block proposers are expected to select the transactions that offer them the highest priority fees first.

The EIP 1559 parameters are different:

| Parameter | OP Mainnet value | Ethereum value (for reference) |
| - | -: | -: |
| Block gas limit | 30,000,000 gas | 30,000,000 gas
| Block gas target | 5,000,000 gas | 15,000,000 gas
| EIP-1559 elasticity multiplier | 6 | 2
| EIP-1559 denominator | 50 | 8
| Maximum base fee increase (per block) | 10% | 12.5%
| Maximum base fee decrease (per block) | 2% | 12.5%
| Block time in seconds | 2 | 12


## Contract addresses

Expand Down

0 comments on commit 4a87cd2

Please sign in to comment.