Type Alias AddTokensWidgetParams

AddTokensWidgetParams: {
    language?: WidgetLanguage;
    showOnrampOption?: boolean;
    showSwapOption?: boolean;
    showBridgeOption?: boolean;
    toTokenAddress?: string;
    toAmount?: string;
    showBackButton?: boolean;
    toProvider?: Web3Provider;
    experiments?: Record<string, string>;
}

Type declaration

  • Optionallanguage?: WidgetLanguage

    The language to use for the Add Tokens widget

  • OptionalshowOnrampOption?: boolean

    Configure to show on-ramp option

  • OptionalshowSwapOption?: boolean

    Configure to show swap option

  • OptionalshowBridgeOption?: boolean

    Configure to show on bridge option

  • OptionaltoTokenAddress?: string

    Token address of the fund to be added

  • OptionaltoAmount?: string

    Amount of the fund to be added

  • OptionalshowBackButton?: boolean

    Whether to show a back button on the first screen, on click triggers REQUEST_GO_BACK event

  • OptionaltoProvider?: Web3Provider

    The destination wallet provider, when requiring to lock destination of funds

  • Optionalexperiments?: Record<string, string>

    Flags to control experiments within the widget