Skip to main content

zks_estimateFee RPC Method

Returns the fee for the transaction.

Updated on
Apr 03, 2026

Parameters

transaction
object
REQUIRED

The transaction object

from
string
REQUIRED

The address from which the transaction is sent

to
string
REQUIRED

The address to which the transaction is addressed

data
string

The data associated with the transaction

Returns

gas_limit
string

The maximum amount of gas that the transaction is allowed to consume

gas_per_pubdata_limit
string

The amount of gas that is consumed per public data byte

max_fee_per_gas
string

The maximum fee (measured in wei) that can be paid per gas unit

max_priority_fee_per_gas
string

The maximum priority fee (measured in wei) that can be paid per gas unit

Request
Response
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": {
5
"gas_limit": "0x20941",
6
"max_fee_per_gas": "0x2b275d0",
7
"max_priority_fee_per_gas": "0x0",
8
"gas_per_pubdata_limit": "0x10"
9
}
10
}
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": {
5
"gas_limit": "0x20941",
6
"max_fee_per_gas": "0x2b275d0",
7
"max_priority_fee_per_gas": "0x0",
8
"gas_per_pubdata_limit": "0x10"
9
}
10
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free