Custom Chains
By default, we only surface Ethereum Mainnet. If you'd like, you can include more networks like Optimism, Polygon, and others.
Example
ConnectKit uses wagmi internally, meaning all the various chains from wagmi are available. All you need to do is provide a custom wagmi config.
First, make sure to import your preferred chains from wagmi:
CustomChains.jsx
import { mainnet, polygon, optimism, arbitrum } from "wagmi/chains";
Then simply replace the default config provided to wagmi with a custom one. Make sure to include your own Infura or Alchemy IDs for the various connectors you want to support.
Below is an example of an app supporting multiple chains/networks using ConnectKit:
CustomChains.jsx
import { WagmiConfig, createConfig, chain } from "wagmi";import { ConnectKitProvider, getDefaultConfig } from "connectkit";const alchemyId = process.env.ALCHEMY_ID;const walletConnectProjectId = process.env.WALLETCONNECT_PROJECT_ID;// Choose which chains you'd like to showconst chains = [mainnet, polygon, optimism, arbitrum];const config = createConfig(getDefaultConfig({appName: "Your App Name",alchemyId,walletConnectProjectId,chains,}),);const App = () => {return (<WagmiConfig config={config}><ConnectKitProvider>{/* Your App */}<ConnectKitButton /></ConnectKitProvider></WagmiConfig>);};
And that's it—users can now choose to connect to any of the networks listed in the chains array.
Chains & Networks
In the example above, we used four different chains. In the table below you'll find a more extensive list of chains you can add to ConnectKit (which wagmi supports out of the box):
Icon | ID | Chain | Symbol | Name |
---|---|---|---|---|
1 | mainnet | ETH | Ether | |
5 | goerli | ETH | Goerli Ether | |
10 | optimism | ETH | Ether | |
14 | flare | FLR | flare | |
16 | songbirdTestnet | CFLR | costonflare | |
19 | songbird | SGB | songbird | |
25 | cronos | CRO | Cronos | |
40 | telos | TLOS | Telos | |
41 | telosTestnet | TLOS | Telos | |
50 | xdc | XDC | XDC | |
51 | xdcTestnet | TXDC | TXDC | |
56 | bsc | BNB | BNB | |
57 | syscoin | SYS | Syscoin | |
66 | okc | OKT | OKT | |
97 | bscTestnet | tBNB | BNB | |
100 | gnosis | xDAI | Gnosis | |
114 | flareTestnet | C2FLR | coston2flare | |
137 | polygon | MATIC | MATIC | |
250 | fantom | FTM | Fantom | |
280 | zkSyncTestnet | ETH | Ether | |
288 | boba | BOBA | Boba | |
314 | filecoin | FIL | filecoin | |
324 | zkSync | ETH | Ether | |
369 | pulsechain | PLS | Pulse | |
420 | optimismGoerli | ETH | Goerli Ether | |
599 | metisGoerli | METIS | Metis Goerli | |
841 | taraxa | TARA | Tara | |
842 | taraxaTestnet | TARA | Tara | |
888 | wanchain | WAN | WANCHAIN | |
943 | pulsechainV4 | PLS | Pulse | |
997 | thunderTestnet | 5IRE | 5ire Token | |
999 | wanchainTestnet | WANt | WANCHAIN | |
1038 | bronosTestnet | tBRO | Bronos Coin | |
1039 | bronos | BRO | BRO | |
1088 | metis | METIS | Metis | |
1101 | polygonZkEvm | ETH | Ether | |
1284 | moonbeam | GLMR | GLMR | |
1285 | moonriver | MOVR | MOVR | |
1287 | moonbaseAlpha | DEV | DEV | |
1337 | localhost | ETH | Ether | |
1442 | polygonZkEvmTestnet | ETH | Ether | |
2000 | dogechain | DC | Dogechain | |
3141 | filecoinHyperspace | tFIL | testnet filecoin | |
3737 | crossbell | CSB | CSB | |
4002 | fantomTestnet | FTM | Fantom | |
4242 | nexi | NEXI | Nexi | |
4689 | iotex | IOTX | IoTeX | |
4690 | iotexTestnet | IOTX | IoTeX | |
7700 | canto | CANTO | Canto | |
8082 | shardeumSphinx | SHM | SHARDEUM | |
8217 | klaytn | KLAY | Klaytn | |
9000 | evmosTestnet | EVMOS | Evmos | |
9001 | evmos | EVMOS | Evmos | |
10200 | gnosisChiado | xDAI | Gnosis | |
11235 | haqqMainnet | ISLM | Islamic Coin | |
17323 | celoCannoli | C-CELO | CELO | |
31337 | foundry | ETH | Ether | |
31337 | hardhat | ETH | Ether | |
42161 | arbitrum | ETH | Ether | |
42220 | celo | CELO | CELO | |
43113 | avalancheFuji | AVAX | Avalanche Fuji | |
43114 | avalanche | AVAX | Avalanche | |
44787 | celoAlfajores | A-CELO | CELO | |
53935 | dfk | JEWEL | Jewel | |
54211 | haqqTestedge2 | ISLMT | Islamic Coin | |
59140 | lineaTestnet | ETH | Linea Ether | |
80001 | polygonMumbai | MATIC | MATIC | |
84531 | baseGoerli | ETH | Base Goerli | |
314159 | filecoinCalibration | tFIL | testnet filecoin | |
421613 | arbitrumGoerli | ETH | Arbitrum Goerli Ether | |
534353 | scrollTestnet | ETH | Ether | |
1337803 | zhejiang | ZhejETH | Zhejiang Ether | |
11155111 | sepolia | SEP | Sepolia Ether | |
278611351 | skaleRazor | sFUEL | sFUEL | |
344106930 | skaleCalypsoTestnet | sFUEL | sFUEL | |
391845894 | skaleBlockBrawlers | BRAWL | BRAWL | |
476158412 | skaleEuropaTestnet | sFUEL | sFUEL | |
503129905 | skaleNebulaTestnet | sFUEL | sFUEL | |
1026062157 | skaleCryptoBlades | sFUEL | sFUEL | |
1273227453 | skaleHumanProtocol | sFUEL | sFUEL | |
1313161554 | aurora | ETH | Ether | |
1313161555 | auroraTestnet | ETH | Ether | |
1350216234 | skaleTitan | sFUEL | sFUEL | |
1351057110 | skaleChaosTestnet | sFUEL | sFUEL | |
1482601649 | skaleNebula | sFUEL | sFUEL | |
1517929550 | skaleTitanTestnet | sFUEL | sFUEL | |
1564830818 | skaleCalypso | sFUEL | sFUEL | |
1666600000 | harmonyOne | ONE | Harmony | |
2046399126 | skaleCryptoColosseum | sFUEL | sFUEL | |
2046399126 | skaleEuropa | sFUEL | sFUEL | |
2139927552 | skaleExorde | sFUEL | sFUEL |