Available adapters
| Adapter | Package | Use it when |
|---|---|---|
wagmiAdapter | @0xtrails/adapter-wagmi | Your app uses wagmi (v2 or v3), or a wagmi-based stack such as Dynamic, Privy, or Sequence Connect |
evmAdapter | 0xtrails (built in) | You have a raw EIP-1193 provider — window.ethereum, an embedded wallet, or any SDK that can expose one |
svmAdapter | @0xtrails/svm | You want to accept or send payments from Solana wallets |
evmAdapter directly. See the thirdweb guide for a complete example of this pattern.
Where to pass adapters
Adapters are a widget-only feature. Pass them on focused widget components such asPay, Fund, Swap, Earn, Withdraw.
Mixing adapters
You can pass several adapters together. EVM adapters compose into one wallet runtime; Solana adapters stack alongside, so EVM and Solana wallets work in the same widget:Choosing an adapter
- No existing wallet stack? Pass no adapters — the built-in runtime handles injected wallets and WalletConnect.
- App on wagmi? Use
wagmiAdapter. One package supports wagmi 2 and wagmi 3. Wagmi-based wallet SDKs such as Dynamic (Fireblocks embedded wallets) plug in the same way — no custom Trails code needed. - Embedded or custom wallet that speaks EIP-1193? Use
evmAdapter. This covers wallet SDKs that expose an EIP-1193 provider directly, such as thirdweb. - Solana? Add
svmAdapter.