WalletConnect (Rainbow, etc.)
The WalletConnectConnector wraps the WalletConnect Ethereum provider and supports its configuration options. This is a great option for adding support for many wallets to your app.
import { WalletConnectConnector } from 'wagmi/connectors/walletConnect'
Usage
import { WalletConnectConnector } from 'wagmi/connectors/walletConnect'
const connector = new WalletConnectConnector({ options: { qrcode: true, },})
Configuration
chains (optional)
Chains supported by app. Defaults to defaultChains
.
import { defaultChains, defaultL2Chains } from 'wagmi'import { WalletConnectConnector } from 'wagmi/connectors/walletConnect'
const connector = new WalletConnectConnector({ chains: [...defaultChains, ...defaultL2Chains],})
options
Options to pass to the WalletConnect Ethereum Provider.
import { WalletConnectConnector } from 'wagmi/connectors/walletConnect'
const connector = new WalletConnectConnector({ options: { qrcode: true, },})