addChain
Adds an EVM chain to the wallet.
Usage
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.
Adds an EVM chain to the wallet.
import { avalanche } from 'viem/chains'
import { walletClient } from './client'
await walletClient.addChain({ chain: avalanche })
Chain
The chain to add to the wallet.