WalletLink (Coinbase Wallet)
The WalletLinkConnector wraps the WalletLink provider and supports connecting with Coinbase Wallet.
import { WalletLinkConnector } from 'wagmi/connectors/walletLink'
Usage
import { WalletLinkConnector } from 'wagmi/connectors/walletLink'
const connector = new WalletLinkConnector({
options: {
appName: 'Mirror.xyz',
jsonRpcUrl: 'https://mainnet.infura.io/v3',
},
})
Configuration
chains (optional)
Chains supported by app. Defaults to defaultChains
.
import { defaultChains, defaultL2Chains } from 'wagmi'
import { WalletLinkConnector } from 'wagmi/connectors/walletLink'
const connector = new WalletLinkConnector({
chains: [...defaultChains, ...defaultL2Chains],
})
options
Options to pass to the WalletLink Provider.
import { WalletLinkConnector } from 'wagmi/connectors/walletLink'
const connector = new WalletLinkConnector({
options: {
appName: 'Mirror.xyz',
jsonRpcUrl: 'https://mainnet.infura.io/v3',
},
})