Check out our new component library - build.abs.xyz!
curl --request POST \
--url https://api.mainnet.abs.xyz/zks_estimateFee \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"method": "zks_estimateFee",
"params": [
{
"from": "0x1111111111111111111111111111111111111111",
"to": "0x2222222222222222222222222222222222222222",
"data": "0xffffffff"
}
],
"id": 1
}
'{
"jsonrpc": "2.0",
"id": 2,
"result": {
"gas_limit": "0x1ea9a9",
"max_fee_per_gas": "0x17d7840",
"max_priority_fee_per_gas": "0x0",
"gas_per_pubdata_limit": "0x5340"
}
}Estimates the fee for a given call request
curl --request POST \
--url https://api.mainnet.abs.xyz/zks_estimateFee \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"method": "zks_estimateFee",
"params": [
{
"from": "0x1111111111111111111111111111111111111111",
"to": "0x2222222222222222222222222222222222222222",
"data": "0xffffffff"
}
],
"id": 1
}
'{
"jsonrpc": "2.0",
"id": 2,
"result": {
"gas_limit": "0x1ea9a9",
"max_fee_per_gas": "0x17d7840",
"max_priority_fee_per_gas": "0x0",
"gas_per_pubdata_limit": "0x5340"
}
}Returns the estimated fee details
"2.0"
2
Show child attributes
The maximum amount of gas that can be used
"0x1ea9a9"
The maximum fee per unit of gas that the sender is willing to pay
"0x17d7840"
The maximum priority fee per unit of gas to incentivize miners
"0x0"
The gas limit per unit of public data
"0x5340"
Was this page helpful?