Optional
amount?: stringThe formatted amount to swap, used to populate the swap from amount field
Optional
fromThe contract address of the token to swap from
Optional
toThe contract address of the token to swap to
Optional
walletThe wallet provider name to use for the swap widget
Optional
language?: WidgetLanguageThe language to use for the swap widget
Optional
autoWhether the swap widget should display the form or automatically proceed with the swap
Optional
direction?: SwapDirectionThe direction of the swap
Optional
showWhether to show a back button on the first screen, on click triggers REQUEST_GO_BACK event
Swap Widget parameters