- Chain client adapters abstract away the complexity of different blockchain architectures. Each adapter manages blockchain-specific bridging operations.
- The Circle Wallet adapter is available if you already use Circle’s developer-controlled wallets. It uses your Circle Wallets account to let you transfer between supported blockchains.
Chain client adapter setups
Bridge Kit works with these client adapter libraries:viemv2 for EVM-compatible blockchainsethersv6 for EVM-compatible blockchainssolanafor the Solana blockchain
| Setup method | Description | Use case |
|---|---|---|
| Standard | Standard setup that creates an adapter from a private wallet key. Uses default built-in public RPC endpoints and factory functions. | Testing environments that need a quick start without custom RPC configuration. |
| Custom RPC | Private key setup that lets you configure an RPC endpoint. | Production deployments that require reliable RPC providers. |
| Browser wallet | Uses an injected wallet provider, such as MetaMask or Phantom, to create an adapter in the browser. | Browser-based apps that rely on user wallet providers. |
Standard setup
This setup is the fastest way to start. Create one adapter from your wallet private key to transfer tokens between EVM-compatible blockchains. Add the Solana adapter to transfer tokens to or from Solana. 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. Select the tab to see code examples for your adapter choice.- Viem
- Ethers
- Solana
This code block initializes the Viem adapter to transfer tokens between
EVM-compatible chains:
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. The following code shows how to set up your own RPC. Pick your adapter to see the code.- Viem
- Ethers
- Solana
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. The following code creates an adapter from a browser wallet. Pick your adapter to see the code.- Viem
- Ethers
- Solana
TypeScript
Circle Wallets adapter setup
server-side only You can use the Circle Wallets adapter if you already manage wallets through Circle. Suited for enterprise and backend applications, it uses Circle’s developer-controlled wallets and Circle Contracts so you can transfer between supported blockchains without managing private keys yourself. The Circle Wallets adapter requires these credentials from the Circle Developer Console:- API Key:
Environment-prefixed (examples:
TEST_API_KEY:abc123:def456,LIVE_API_KEY:xyz:uvw) or Base64-encoded. - Entity Secret: 64 lowercase alphanumeric characters.
Typescript