Skip to content
Alchemy Logo

applyUserOpOverrideOrFeeOption

function applyUserOpOverrideOrFeeOption<TValue>(
  value,
  override?,
  feeOption?,
): any;

Defined in: aa-sdk/core/src/utils/userop.ts:145

Utility method for applying a UserOperationOverrides field value and a UserOperationFeeOptionsField value over the current value set for the field, with the override taking precedence over the fee option

Type Parameter

TValue extends any

ParameterTypeDescription

value

TValue

the current value of the field

override?

any

the override value to apply

feeOption?

any

the fee option field value to apply

any

the new value of the field after applying the override or fee option

Was this page helpful?