Type alias SwapWidgetParams

SwapWidgetParams: {
    amount?: string;
    fromTokenAddress?: string;
    toTokenAddress?: string;
    walletProviderName?: WalletProviderName;
    language?: 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?: WalletProviderName

    The wallet provider name to use for the swap widget

  • Optional language?: WidgetLanguage

    The language to use for the swap widget

Generated using TypeDoc