Skip to content
On this page

addChain

Adds an EVM chain to the wallet.

Usage

ts
import { addChain } from 'viem/wallet'

Usage

ts
import { addChain } from 'viem/wallet'
import { avalanche } from 'viem/chains'
import { walletClient } from '.'
 
await addChain(walletClient, avalanche) 

Parameters

chain

The chain to add to the wallet.

Released under the MIT License.