Alchemy Logo

zks_estimateGasL1ToL2

POST
/{apiKey}

Estimates the gas required for an L1 to L2 transaction.

Path Parameters

apiKeystringrequireddefaults to docs-demo

For higher throughput, create your own API key

Request

Call objectobjectrequired

The transaction call object containing details about the transaction.

Responses

200

The estimated gas amount in hexadecimal format.

Was this page helpful?