Skip to content

Latest commit

 

History

History
42 lines (30 loc) · 1.36 KB

RSKIP412.md

File metadata and controls

42 lines (30 loc) · 1.36 KB
rskip title description status purpose author layer complexity created
412
BASEFEE instruction
Adopted
Usa
VK
Core
2
2023/11/9

BASEFEE instruction

RSKIP 412
Title BASEFEE instruction
Created NOV-2023
Author VK
Purpose Usa
Layer Core
Complexity 2
Status Adopted

Abstract

This RSKIP implements Ethereum BASEFEE instruction. The BASEFEE (0x48) opcode returns the base fee value of the current block it is executing in.

Motivation

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.

Specification

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

Copyright and related rights waived via CC0