Chains
Customizing chains
The chains prop on RainbowKitProvider defines which chains are available for the user to select.
RainbowKit is designed to integrate with wagmi’s chain object which currently provides the following chains:
chain.mainnetchain.ropstenchain.rinkebychain.goerlichain.kovanchain.sepoliachain.optimismchain.optimismGoerlichain.optimismKovanchain.polygonchain.polygonMumbaichain.arbitrumchain.arbitrumRinkebychain.localhostchain.hardhat
Your chain config can be defined in a single array provided to configureChains.
By default, RainbowKit will connect to the first chain in your chains array to ensure users aren't immediately presented with the "Wrong network" state. This behavior can be customized via the initialChain prop.
The initial chain can be configured using a chain ID.
As a convenience, you can also pass a chain object.
By default, RainbowKit will resolve ENS details from the mainnet chain if it's in your chains array. This chain can be customized via the ensChain prop.
The ENS chain can be configured using a chain ID.
As a convenience, you can also pass a chain object.
Several chain icons are provided by default, but you can customize the icon for each chain using the iconUrl property.