Skip to main content

zks_estimateFee RPC Method

Loading...

Updated on
Nov 02, 2023

zks_estimateFee RPC Method

Parameters

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 https://docs-demo.zksync-mainnet.quiknode.pro/ \
2
-X POST \
3
-H "Content-Type: application/json" \
4
--data '{"method":"zks_estimateFee","params":[{ "from": "0x1111111111111111111111111111111111111111", "to":"0x2222222222222222222222222222222222222222", "data": "0xffffffff" } ],"id":1,"jsonrpc":"2.0"}'
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free