Coinbase Wallet

The CoinbaseWalletConnector supports connecting with Coinbase Wallet using the Coinbase Wallet SDK


Visit the Coinbase Wallet SDK.

Usage

import { CoinbaseWalletConnector } from 'vagmi/connectors/coinbaseWallet';const connector = new CoinbaseWalletConnector({  options: {    appName: 'vagmi.sh',    jsonRpcUrl: 'https://eth-mainnet.alchemyapi.io/v2/yourAlchemyId',  },});

Configuration

chains (optional)

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

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',  },});