@trustwallet/trust-web3-provider
Trust Wallet Web3 provider — injected provider for DApp browser supporting EVM, Solana, Cosmos, Aptos, and Ton chains.
Install
Add @trustwallet/trust-web3-provider to Claude Code with the PolySkill CLI: polyskill add @trustwallet/trust-web3-provider
Instructions
A modular TypeScript library that provides standardized Web3 provider interfaces for wallets to connect with dApps across multiple blockchains. **Repo**: `@trustwallet/web3-provider-*` **Version**: 4.x (monorepo, Bun workspaces) **Supported chains**: Ethereum, Solana, Cosmos, Bitcoin, Aptos, TON, Tron --- ## Architecture ``` dApp → request() → ChainProvider → Adapter → Handler (your wallet code) ↓ (Promise or Callback strategy) ``` - **`Web3Provider`** — orchestrator; holds the adapter and routes requests - **`BaseProvider`** — abstract base for all chain providers (extends EventEmitter) - **…
Keywords: trustwallet, web3-provider, dapp-browser, evm, solana, cosmos