viemv2 for EVM-compatible blockchainsethersv6 for EVM-compatible blockchainssolanafor the Solana blockchaincircle-walletsfor your existing Circle Wallets account
- Viem
- Ethers
- Solana
- Circle Wallets
Standard setup
The standard setup is the fastest way to start. Create one adapter from your wallet private key that works across multiple blockchains.This setup uses public RPC endpoints and factory functions. For production, you should configure a custom RPC. Public connections have rate limits and might be slow.TypeScript
Custom RPC
You can replace the public RPC from the standard setup with your own connection. For production, you should use a paid service like Alchemy or QuickNode. These services are more reliable than free connections.To use your own connection, replace the default one and add your custom RPC endpoints. Map each chain to its RPC endpoint so one adapter can work across multiple chains. This example uses Alchemy connections:TypeScript
Browser wallet
You can create an adapter from browser wallet apps like MetaMask or Phantom:TypeScript