Skip to main content

zks_estimateFee RPC Method

Loading...

Updated on
Feb 17, 2026

zks_estimateFee RPC Method

Parameters

transaction
object
REQUIRED
Loading...
from
string
REQUIRED
Loading...
to
string
REQUIRED
Loading...
data
string
Loading...

Returns

gas_limit
Loading...
gas_per_pubdata_limit
Loading...
max_fee_per_gas
Loading...
max_priority_fee_per_gas
Loading...
Request
1
curl -X POST "https://docs-demo.zksync-mainnet.quiknode.pro/" \
2
-H "Content-Type: application/json" \
3
-d '{
4
"jsonrpc": "2.0",
5
"method": "zks_estimateFee",
6
"params": [
7
{
8
"from": "0x1111111111111111111111111111111111111111",
9
"to": "0x2222222222222222222222222222222222222222",
10
"data": "0xffffffff"
11
}
12
],
13
"id": 1
14
}'
1
curl -X POST "https://docs-demo.zksync-mainnet.quiknode.pro/" \
2
-H "Content-Type: application/json" \
3
-d '{
4
"jsonrpc": "2.0",
5
"method": "zks_estimateFee",
6
"params": [
7
{
8
"from": "0x1111111111111111111111111111111111111111",
9
"to": "0x2222222222222222222222222222222222222222",
10
"data": "0xffffffff"
11
}
12
],
13
"id": 1
14
}'
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