Skip to content

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

The chain to add to the wallet.

JSON-RPC Methods

eth_addEthereumChain