v1

latestOpenAPI 3.0.02026-07-26541677.9 KB
ZKSync API

zks_estimateFee

Estimates the fee for a given call request

post/zks_estimateFee

Request body

jsonrpcstring required

JSON-RPC version

methodstring required

The method to call

idinteger required

Request identifier

Response

Returns the estimated fee details

jsonrpcstring
idinteger

Example response

{
  "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"
  }
}