TypeScript SDK
SwapWidget
A widget for swapping tokens with cross-chain support
By default, no tokens are selected in the widget UI.
You can set specific tokens to buy or sell by default by passing the prefill
prop. User can change these selections in the widget UI.
By not specifying a tokenAddress
, the native token will be used.