Skip to content

Latest commit

 

History

History
 
 

chains

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

@wagmi/chains

References to popular EVM-compatible chains.

Installation

Install the @wagmi/chains package.

npm i @wagmi/chains

Usage

Use your preferred chains!

import { configureChains } from 'wagmi'
import { avalanche, bsc, mainnet } from '@wagmi/chains'

const { chains, provider } = configureChains(
  [mainnet, avalanche, bsc],
  ...
)

If your bundler supports tree-shaking (most likely), only the used chains will be included in the bundle, so you don't have to worry about bundle size. 😊

Chains

  • arbitrum
  • arbitrumGoerli
  • aurora
  • auroraTestnet
  • avalanche
  • avalancheFuji
  • bronos
  • bronosTestnet
  • bsc
  • bscTestnet
  • canto
  • celo
  • celoAlfajores
  • fantom
  • fantomTestnet
  • foundry
  • goerli
  • hardhat
  • iotex
  • iotexTestnet
  • localhost
  • mainnet
  • metis
  • metisGoerli
  • moonbaseAlpha
  • moonbeam
  • moonriver
  • okc
  • optimism
  • optimismGoerli
  • polygon
  • polygonMumbai
  • sepolia
  • taraxa
  • taraxaTestnet
  • telos
  • telosTestnet
  • zkSync
  • zkSyncTestnet

Contributing

Want to add another chain to the list? Make sure you read the contributing guide first.