The drop-in widget is the fastest way to add a deposit flow to your app. You provide a config, Trustware handles wallet discovery, and users move through the full hosted flow without any wallet state management on your side.Documentation Index
Fetch the complete documentation index at: https://docs.trustware.io/llms.txt
Use this file to discover all available pages before exploring further.
When to use this pattern
Choose this pattern when:- your app does not already have a connected wallet state
- you want the complete built-in UX: wallet selection, token picker, amount entry, and confirmation
- you want to reach production with the shortest integration path
Setup
Define your config
Create a
TrustwareConfigOptions object. At minimum you need apiKey and routes.toChain / routes.toToken.autoDetectProvider: true tells Trustware to manage wallet discovery on its own. Leave this enabled when using the drop-in pattern.Widget flow
Once rendered, the widget walks users through these steps in order:- Home — entry point; users choose to pay with crypto or fiat
- Select Token — two-column layout for picking a source chain and token
- Confirm Deposit — amount entry with slider, token carousel, and fee summary
- Processing — transaction submitted; the widget waits for confirmation
- Success / Error — final result screen
When to prefer this pattern
| Scenario | Recommended pattern |
|---|---|
| No existing wallet | Drop-in widget (this page) |
| Already using Wagmi / RainbowKit | Host wallet |
| Open/close widget programmatically | Controlled widget |
| Custom deposit UI, no widget | Headless core |
