POST
/
zks_estimateFee
curl --request POST \
  --url https://api.mainnet.abs.xyz/zks_estimateFee \
  --header 'Content-Type: application/json' \
  --data '{
  "jsonrpc": "2.0",
  "id": 2,
  "method": "zks_estimateFee",
  "params": [
    {
      "from": "0x1111111111111111111111111111111111111111",
      "to": "0x2222222222222222222222222222222222222222",
      "data": "0xffffffff"
    }
  ]
}'
{
  "jsonrpc": "2.0",
  "result": {
    "gas_limit": "0x1ea9a9",
    "max_fee_per_gas": "0x17d7840",
    "max_priority_fee_per_gas": "0x0",
    "gas_per_pubdata_limit": "0x5340"
  },
  "id": 2
}

Body

application/json
jsonrpc
string
default:2.0
required

JSON-RPC version

method
string
default:zks_estimateFee
required

The method to call

params
any[]
required

Call parameters

id
integer
default:1
required

Request identifier

Response

200 - application/json
Returns the estimated fee details
jsonrpc
string
Example:

"2.0"

id
integer
Example:

2

result
object