The CoinbaseWalletConnector supports connecting with Coinbase Wallet using the Coinbase Wallet SDK
Visit the Coinbase Wallet SDK.
import { CoinbaseWalletConnector } from 'vagmi/connectors/coinbaseWallet';const connector = new CoinbaseWalletConnector({ options: { appName: 'vagmi.sh', jsonRpcUrl: 'https://eth-mainnet.alchemyapi.io/v2/yourAlchemyId', },});
Chains supported by app. Defaults to defaultChains
.
import { chain } from 'vagmi';import { CoinbaseWalletConnector } from 'vagmi/connectors/coinbaseWallet';const connector = new CoinbaseWalletConnector({ chains: [chain.mainnet, chain.optimism], options: { appName: 'vagmi.sh', jsonRpcUrl: 'https://eth-mainnet.alchemyapi.io/v2/yourAlchemyId', },});
Options to pass to the Coinbase Wallet SDK.
import { CoinbaseWalletConnector } from 'vagmi/connectors/coinbaseWallet';const connector = new CoinbaseWalletConnector({ options: { appName: 'vagmi.sh', jsonRpcUrl: 'https://eth-mainnet.alchemyapi.io/v2/yourAlchemyId', },});