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
The adapter subscribes to the provider’s
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.