Type Alias SwapWidgetParams

SwapWidgetParams: {
    amount?: string;
    fromTokenAddress?: string;
    toTokenAddress?: string;
    walletProviderName?: WalletProviderName;
    language?: WidgetLanguage;
    autoProceed?: boolean;
    direction?: SwapDirection;
}

Swap Widget parameters

Type declaration

  • Optionalamount?: string

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

  • OptionalfromTokenAddress?: string

    The contract address of the token to swap from

  • OptionaltoTokenAddress?: string

    The contract address of the token to swap to

  • OptionalwalletProviderName?: WalletProviderName

    The wallet provider name to use for the swap widget

  • Optionallanguage?: WidgetLanguage

    The language to use for the swap widget

  • OptionalautoProceed?: boolean

    Whether the swap widget should display the form or automatically proceed with the swap

  • Optionaldirection?: SwapDirection

    The direction of the swap