rskip | title | description | status | purpose | author | layer | complexity | created |
---|---|---|---|---|---|---|---|---|
412 |
BASEFEE instruction |
Adopted |
Usa |
VK |
Core |
2 |
2023/11/9 |
RSKIP | 412 |
---|---|
Title | BASEFEE instruction |
Created | NOV-2023 |
Author | VK |
Purpose | Usa |
Layer | Core |
Complexity | 2 |
Status | Adopted |
This RSKIP implements Ethereum BASEFEE instruction. The BASEFEE (0x48)
opcode returns the base fee value of the current block it is executing in.
In order to maintain compatibility with the EVM, Rootstock needs to implement the BASEFEE
opcode.
There's an important difference when comparing Rootstock vs ETH BASEFEE
opcode: as Rootstock doesn't define a base fee for its blocks, the block minimum gas price
is returned instead. More details on the specification section.
The BASEFEE
opcode pushes onto the stack the minimum gas price of the block in which the transaction is being executed. The cost of the BASEFEE
opcode is 2.
Copyright and related rights waived via CC0