Reference
Wallet detection
EVM
Detected via EIP-6963 — standard event-based discovery. All compliant wallets (MetaMask, Rabby, Coinbase Wallet, Brave, OKX, and others) are discovered automatically. window.ethereum is never used.
Solana
Detected via the Wallet Standard (@wallet-standard/app). Wallets must expose standard:connect, solana:signTransaction, and solana:signMessage. Multi-chain wallets like Phantom and Backpack are merged into a single entry when detected on both EVM and Solana.
Tron
Detected via TronLink’s injected provider (window.tronLink). The SDK listens for tronLink#initialized and polls for up to 3 seconds to handle extensions that load after the page.
Bitcoin
Three detection paths run in parallel:
| Wallet | Detection |
|---|---|
| Unisat | window.unisat injected provider |
| OKX Wallet | window.okxwallet.bitcoin — shares rdns with OKX EVM, auto-merges to give EVM + Bitcoin support |
| MetaMask Bitcoin Snap | After each EVM wallet is discovered, wallet_getSnaps is called silently. If npm:@metamask/bitcoin-snap is enabled, the wallet gains Bitcoin support with no user interaction. |