Differences between Ethereum and Linea
This page outlines Ethereum Mainnet functionality that differs on Linea, or is not yet available on Linea. Absence from this page indicates that the functionality is available on Linea and identical to behavior on Ethereum Mainnet; if you're experiencing otherwise, please get in touch via Discord.
With Linea Beta v4, Linea upgraded to the Pectra hard fork.
EVM opcodes​
| Opcode | Ethereum | Linea |
|---|---|---|
BLOBBASEFEE | Returns the value of the blob base-fee of the current block. | Will always return the minimum value. |
BLOBHASH | Given an an input in the form of an | Will always return 0. |
BLOCKHASH | Returns the hash of a requested block from the 256 most recent blocks. | Returns the correct value, but the value is not guaranteed by the proof (Linea is a type 2 zkEVM, and uses/proves an L2-specific state representation). |
PREVRANDAO | Returns the RANDAO value from the previous block. | Use a formula similar to Ethereum, e.g. |
Consult the Ethereum Foundation's Opcode Reference for more.
Evmdiff is also a useful resource for comparing Linea with Ethereum, and evm.codes is useful for information about specific opcodes on Ethereum.
Precompiles​
| Precompile | Ethereum | Linea |
|---|---|---|
BLAKE2f | Compression function F used in the BLAKE2 cryptographic hashing algorithm. | Not supported. |
MODEXP | Arbitrary-precision exponentiation under modulo. | Only supports arguments (base, exponent, modulus) that do not exceed 512-byte integers. |
| Precompiles as transaction recipients | Applicable to various use cases. | Not supported. A transaction to address cannot be a precompile, i.e. an
address in the range 0x01-0x09. |
RIPEMD-160 | A hash function. | Not supported. |
Beacon root​
EIP-4788, included in Ethereum's Dencun upgrade,
introduced a smart contract that enables the caller to get or set the hash tree root of a
beacon chain block.
This functionality is available with Linea Beta v4. However, due to the difference in block time when compared to Ethereum Mainnet, only the root of the previous block is available.
Call data​
Linea's sequencer limits the size of call data, so that transactions can fit into the corresponding blob. The current limit is 60000 bytes.
JSON-RPC API​
Linea uses the standard Ethereum JSON RPC API methods. However, in a few cases, methods differ from those on Ethereum. These methods are documented in the reference section, and include:
linea_estimateGaslinea_getProoflinea_getTransactionExclusionStatusV1eth_sendRawTransaction
Type 3 transactions​
Linea does not support type 3 (0x3 or "blob") transactions. This type is used on Ethereum Mainnet
primarily for layer 2 rollups to cheaply post data on L1.
EIP-7702​
EIP-7702 is not yet supported on Linea, and is scheduled to be activated with Beta v6.0, in early 2026.