evmAdapter is the universal EVM adapter, exported directly from 0xtrails — no extra package needed. It accepts anything that implements the EIP-1193 provider interface: window.ethereum, embedded wallet providers, or providers produced by wallet SDKs.
If a wallet library can hand you an object with a request({ method, params }) method, you can plug it into Trails with evmAdapter.
Quick start
Options
Wallet descriptor
| Field | Type | Description |
|---|---|---|
id | string | Stable identifier for the wallet |
name | string | Display name in the Trails UI |
icon | string | Optional icon URL |
provider | Eip1193ProviderLike | () => provider | Promise<provider> | The EIP-1193 provider, or a factory returning it (or null when unavailable) |
showDisconnect | boolean | Whether Trails shows a disconnect action for this wallet. Defaults to true |
accountsChanged, chainChanged, and disconnect events, so account and network switches in the wallet are reflected in Trails automatically. Chain switching uses wallet_switchEthereumChain, adding the chain via wallet_addEthereumChain when needed.
Viem chain objects are compatible with this shape.