GasTransformFn typedef

GasTransformFn = BigInt Function(BigInt)

Function signature for transforming an estimated gas value.

A GasTransformFn takes the original gas estimate (as a BigInt) and returns a modified value that will be used when building transactions. This is useful for applying multipliers, adding buffers, or capping the gas limit before submission.

Implementation

typedef GasTransformFn = BigInt Function(BigInt);