ZKSync API

zks_estimateGasL1ToL2

Estimates the gas required for an L1 to L2 transaction

post/zks_estimateGasL1ToL2

Request

  • Base URL
    https://api.mainnet.abs.xyz
  • URL
    https://api.mainnet.abs.xyz/zks_estimateGasL1ToL2
  • Auth
    none declared

Request body

jsonrpcstring required

JSON-RPC version

methodstring required

The method to call

idinteger required

Request identifier

Response

Returns the estimated gas amount

jsonrpcstring
idinteger
resultstring

The estimated gas amount in hexadecimal format

Example response

{
  "jsonrpc": "2.0",
  "id": 2,
  "result": "0x25f64db"
}

Changes

No recorded changes to this operation across all 2 revisions of this API.