Documentation
/Connectors
/Coinbase Wallet
Coinbase Wallet
The CoinbaseWalletConnector wraps the Coinbase Wallet SDK and supports connecting with Coinbase Wallet.
import { CoinbaseWalletConnector } from 'wagmi/connectors/coinbaseWallet'
Usage
import { CoinbaseWalletConnector } from 'wagmi/connectors/coinbaseWallet'
const connector = new CoinbaseWalletConnector({
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 { CoinbaseWalletConnector } from 'wagmi/connectors/coinbaseWallet'
const connector = new CoinbaseWalletConnector({
chains: [...defaultChains, ...defaultL2Chains],
})
options
Options to pass to the Coinbase Wallet SDK.
import { CoinbaseWalletConnector } from 'wagmi/connectors/coinbaseWallet'
const connector = new CoinbaseWalletConnector({
options: {
appName: 'Mirror.xyz',
jsonRpcUrl: 'https://mainnet.infura.io/v3',
},
})