Type alias PaymasterUserOperationDto

PaymasterUserOperationDto: SponsorUserOperationDto & FeeQuotesOrDataDto & {
    calculateGasLimits?: boolean;
    expiryDuration?: number;
    feeQuote?: PaymasterFeeQuote;
    feeTokenAddress?: string;
    maxApproval?: boolean;
    mode: PaymasterMode;
    skipPatchCallData?: boolean;
    smartAccountInfo?: SmartAccountData;
    spender?: Hex;
    webhookData?: Record<string, any>;
}

Type declaration

  • Optional calculateGasLimits?: boolean

    Always recommended, especially when using token paymaster

  • Optional expiryDuration?: number

    Expiry duration in seconds

  • Optional feeQuote?: PaymasterFeeQuote

    The fee quote

  • Optional feeTokenAddress?: string

    the fee-paying token address

  • Optional maxApproval?: boolean

    Not recommended

  • mode: PaymasterMode

    mode: sponsored or erc20

  • Optional skipPatchCallData?: boolean
  • Optional smartAccountInfo?: SmartAccountData

    Smart account meta data

  • Optional spender?: Hex

    The address of the spender. This is usually set to FeeQuotesOrDataResponse.tokenPaymasterAddress

  • Optional webhookData?: Record<string, any>

    Webhooks to be fired after user op is sent