Skip to main content

scroll_estimateL1DataFee RPC Method

Estimates how much ETH is required to cover L1 data fee for this transaction.

Updated on
Feb 23, 2026
Please note that the transaction will not be added to the blockchain. For the transaction to be processed, the sender account must have enough ETH to cover both L1 data fee and L2 gas fee.

Parameters

transaction
object
REQUIRED

The transaction call object:

from
string

The address from which the transaction is sent

to
string
REQUIRED

The address to which the transaction is addressed

gas
string

The integer of gas provided for the transaction execution

gasPrice
string

The integer of gasPrice used for each paid gas encoded as hexadecimal

value
integer

The integer of value sent with this transaction encoded as hexadecimal

data
string

The hash of the method signature and encoded parameters. For more information, see the Contract ABI description in the Solidity documentation.

blockNumber
string

The block number in hexadecimal format or the tags ('latest', 'earliest', 'pending' or 'finalized')

Returns

result
string

The estimated amount of ETH (in wei) required for L1 data fee, represented as a hexadecimal string

Request
Response
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": "0x3968df264"
5
}
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": "0x3968df264"
5
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free