zkevm_estimateFee

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

apiKeystringRequiredDefaults to docs-demo

Request

This endpoint expects an object.
transactionobjectRequired

Transaction call object (same shape as eth_estimateGas).

Response

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