Skip to main content
svmAdapter from @0xtrails/svm adds Solana (SVM) support to the Trails widget. It registers the SVM edge plugin and provides the Solana wallet context when passed through adapters. One adapter covers every integration style: built-in Wallet Standard auto-detection, the modern @solana/react-hooks stack, or the legacy @solana/wallet-adapter-react stack.

Install

Auto-detection (no Solana provider needed)

The simplest setup — the adapter discovers Wallet Standard wallets (Phantom, Solflare, Backpack, …) on its own. No app-level Solana wallet provider is required:
Auto-detection options:

Bring your own wallet (@solana/react-hooks)

If your app already manages Solana wallet state, pass the wallet handle directly. With the modern @solana/react-hooks stack this is a one-liner:
wallet accepts Wallet Standard wallets, standard-compatible wallet adapters, and Kit-style wallet sessions.

Legacy @solana/wallet-adapter-react

The legacy Solana Wallet Adapter stack works too — adapt its @solana/web3.js transaction signing into the serialized signer shape svmAdapter expects:

Options reference