Skip to content
Alchemy Logo

zkevm_estimateFee

POST
/{apiKey}

Returns the estimated transaction fee for executing the provided transaction on Polygon zkEVM, taking into account zkEVM's effective gas pricing. This method accepts the same transaction call object as eth_estimateGas and returns gasUsed * estimatedGasPrice as a hex-encoded wei value.

Path Parameters

stringrequireddefaults to docs-demo

For higher throughput, create your own API key

Request

objectrequired

Transaction call object (same shape as eth_estimateGas).

Responses

200

The estimated total fee in wei as a hex-encoded quantity.

Was this page helpful?