SwapWidgetParams: {
    amount?: string;
    fromTokenAddress?: string;
    toTokenAddress?: string;
    walletProviderName?: checkout.WalletProviderName;
    language?: checkout.WidgetLanguage;
}

Swap Widget parameters

Type declaration

  • Optional amount?: string

    The formatted amount to swap, used to populate the swap from amount field

  • Optional fromTokenAddress?: string

    The contract address of the token to swap from

  • Optional toTokenAddress?: string

    The contract address of the token to swap to

  • Optional walletProviderName?: checkout.WalletProviderName

    The wallet provider name to use for the swap widget

  • Optional language?: checkout.WidgetLanguage

    The language to use for the swap widget

Generated using TypeDoc