Type alias ChainFees<formatters>

ChainFees<formatters>: {
    baseFeeMultiplier?: number | ((args) => Promise<number> | number);
    defaultPriorityFee?: bigint | ((args) => Promise<bigint> | bigint);
    estimateFeesPerGas?: ChainEstimateFeesPerGasFn<formatters> | bigint;
}

Type Parameters

Type declaration

  • Optional baseFeeMultiplier?: number | ((args) => Promise<number> | number)

    The fee multiplier to use to account for fee fluctuations. Used in the estimateFeesPerGas Action.

    Default

    1.2
    
  • Optional defaultPriorityFee?: bigint | ((args) => Promise<bigint> | bigint)

    The default maxPriorityFeePerGas to use when a priority fee is not defined upon sending a transaction.

    Overrides the return value in the estimateMaxPriorityFeePerGas Action.

  • Optional estimateFeesPerGas?: ChainEstimateFeesPerGasFn<formatters> | bigint

    Allows customization of fee per gas values (e.g. maxFeePerGas/maxPriorityFeePerGas).

    Overrides the return value in the estimateFeesPerGas Action.