TradeWidgetTradeWidgetWalletProvider
| Pattern | Use when | Notes |
|---|---|---|
TradeWidget | You want the full trading widget with the built-in wallet flow | Best default for standalone embeds |
TradeWidget + TradeWidgetWalletProvider | Your app already owns wallet connection and providers | Lets the widget reuse host-managed wallets |
1. TradeWidget
Use TradeWidget when you want the complete Delora trading experience, including token selection, network selection, quote loading, slippage control, wallet connection, and transaction execution.
2. TradeWidget with external wallet management
Use this pattern when the host app already manages wallet state and providers.
origin, destination, or both sides. If one side is omitted, that side falls back to the widget’s built-in wallet flow.
In the widget UI, origin maps to the sell-side wallet and destination maps to the receiver-side wallet.
Receiver handling
The widget also supports receiver-side selection at runtime:- reuse the origin wallet when the buy-side namespace matches
- connect a separate destination wallet
- paste a receiver address directly in the UI

