eth_estimateDiffSize

Returns estimated diff size and gas consumption for a potential transaction.

Path Parameters

apiKeystringRequiredDefaults to docs-demo

Request

This endpoint expects an object.
TransactionobjectRequired

Transaction object to simulate (same shape as eth_estimateGas).

Blockstring or enumOptional

Block number or tag at which to estimate (defaults to ‘latest’ if omitted).

Response

Estimated gas usage and L1 diff size.
gasstringformat: "^0x([1-9a-f]+[0-9a-f]*|0)$"

Estimated gas consumption (hex quantity).

l1DiffSizestringformat: "^0x([1-9a-f]+[0-9a-f]*|0)$"

Estimated L1 diff size (hex quantity).