Skip to main content
Version: v1.11

resolveWithdrawalFee()

resolveWithdrawalFee(__namedParameters): bigint

Defined in: withdrawalFee.ts:48

Returns the total fee (wei) to send for requestCount withdrawal requests.

Without requestedFee, returns defaultMultiplier (default 2) times the current fee per request. Headroom only makes sense where the excess is refunded (the OVM refunds it; the EIP-7002 contract itself does not). With requestedFee (a total for all requests), returns it unchanged after checking it covers the current fee and is not more than max(10x the current fee, 1 gwei) per request.

Parameters​

ParameterType
__namedParameters{ currentFee: bigint; requestedFee?: string; requestCount?: number; defaultMultiplier?: bigint; }
__namedParameters.currentFeebigint
__namedParameters.requestedFee?string
__namedParameters.requestCount?number
__namedParameters.defaultMultiplier?bigint

Returns​

bigint