Summary
Crypto wallets support a wallet_addEthereumChain command, which allows users to easily add a new network without having to provide the network parameters themselves.
We can create a button component that uses WAGMI to trigger the wallet_addEthereumChain for easy chain connecting. When we provide the chain configuration, we can add the button next to it to quickly configure the network in the users wallet.
Summary
Crypto wallets support a
wallet_addEthereumChaincommand, which allows users to easily add a new network without having to provide the network parameters themselves.We can create a button component that uses WAGMI to trigger the
wallet_addEthereumChainfor easy chain connecting. When we provide the chain configuration, we can add the button next to it to quickly configure the network in the users wallet.