Chains
Customizing chains
RainbowKit is designed to integrate with wagmi’s chain
object. Check out the list of supported chains here.
By default, RainbowKit will connect to the first chain supplied to Wagmi. 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.
If you want to switch chains before connecting your wallet, just set chainModalOnConnect
prop to true
in <RainbowKitProvider>
. This will let you interact with the chain modal before your wallet is connected, and also while it is connected.
Several chain icons and backgrounds are provided by default, but you can customize the icon and background for each chain using the iconUrl
and iconBackground
properties.
Example with getDefaultConfig
Example with createConfig