addChain
Adds an EVM chain to the wallet.
Usage
example.ts
import { avalanche } from 'viem/chains'
import { walletClient } from './client'
await walletClient.addChain({ chain: avalanche })
Parameters
chain
- Type:
Chain
The chain to add to the wallet.