@deloraprotocol/widget, and its main export is TradeWidget, which loads chain and token metadata, requests quotes from /v1/quotes, and lets users execute trades from the same UI.
The package also includes:
TradeWidgetWalletProviderfor host-managed wallet integrationsuseTradeWidgetWalletManagementfor reading the wallet-management context- TypeScript types for configuration, events, filters, tokens, networks, and wallet management
What the widget supports
- Delora metadata loading from
/v1/chainsand/v1/tokens - Quote requests to
/v1/quotes - Internal wallet connection UI for EVM and Solana wallets
- External wallet integration through
TradeWidgetWalletProvider - Separate origin and destination wallet flows
- Receiver selection through a connected destination wallet or a pasted address
- Side-specific network and token filters
- Initial token and network selection
- Locking sell or buy tokens and networks
- Auto-refreshing quotes with a built-in countdown and manual refresh
- Theme customization through
theme,vars,className, andstyle - Event hooks for quotes, wallet connections, transaction submission, confirmation, and errors
Quick start
config.apiUrl is not required. If it is omitted, the widget falls back to https://api.delora.build.
The package currently ships one main trading UI. The main integration choice is wallet ownership, not a visual variant such as compact or drawer mode.

