<!-- Canonical: https://docs.linea.build/network/overview/ethereum-differences -->

> For the complete Linea documentation index, see [llms.txt](/llms.txt).
> Agents can fetch this page as Markdown at [https://docs.linea.build/network/overview/ethereum-differences.md](https://docs.linea.build/network/overview/ethereum-differences.md).

# The 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 contact us via the [support page](/support).

note

With Linea [Beta v4.4](/changelog/release-notes#beta-v44), Linea upgraded to the Fusaka 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 `index`, indicating the position of a particular blob within an array of blobs associated with a transaction, returns the hash of the corresponding blob.

If the index is out of bounds, returns `0`.

 | 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](https://vitalik.eth.limo/general/2022/08/04/zkevm.html), 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. `L2_prevrandao XOR hash(signed(slot_id))`.

 |

_Consult the Ethereum Foundation's [Opcode Reference](https://ethereum.org/en/developers/docs/evm/opcodes/) for more._

[Evmdiff](https://evmdiff.com) is also a useful resource for comparing Linea with Ethereum, and [evm.codes](https://evm.codes/) is useful for information about specific opcodes on Ethereum.

## Precompiles

| Precompile | Ethereum | Linea |
| --- | --- | --- |
| `MODEXP` | Arbitrary-precision exponentiation under modulo. | Only supports arguments (base, exponent, modulus) that do not exceed 1024-byte integers. |
| Precompiles as transaction recipients | Applicable to various use cases. | Not supported. A transaction `to` address cannot be a precompile. |

## Beacon root

[EIP-4788](https://eips.ethereum.org/EIPS/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 on Linea. 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](/protocol/reference/zero-knowledge-glossary#sequencer)**Sequencer** The set of Linea Besu plugins responsible for ordering, building, and executing blocks in a way that allows the subsequent ZK proof to be made, including the tracer. The sequencer is a plugin set rather than a standalone process; a node that runs it alongside a Maru validator is a sequencer node. 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](/api/reference), and include:

-   `linea_estimateGas`
-   `linea_getProof`
-   `linea_getTransactionExclusionStatusV1`
-   `eth_sendRawTransaction`

## Type 3 transactions

Linea does not support type 3 (`0x3` or "blob") transactions. This type is used on Ethereum Mainnet primarily for L2 rollups to cheaply post data on L1.

## EIP-7702 (type 4 transactions)

Linea supports [EIP-7702](/protocol/eip-7702) type `0x04` transactions as of [Beta v5.0](/changelog/release-notes#beta-v50). This allows externally owned accounts (EOAs) to delegate to smart contract logic, enabling features like transaction batching, gas sponsorship, and session keys. See the [EIP-7702 support](/protocol/eip-7702) page for details.

## Next steps

Learn how [pricing is calculated](/network/overview/predictable-pricing) on Linea.
