• Core
  • Connectors
  • Coinbase Wallet

Coinbase Wallet

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

import { CoinbaseWalletConnector } from '@wagmi/core/connectors/coinbaseWallet'

Usage

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

Configuration

chains (optional)

Chains supported by app. Defaults to defaultChains.

import { mainnet, optimism, polygon } from '@wagmi/core/chains'
import { CoinbaseWalletConnector } from '@wagmi/core/connectors/coinbaseWallet'
 
const connector = new CoinbaseWalletConnector({
  chains: [mainnet, optimism, polygon],
  options: {
    appName: 'wagmi.sh',
    jsonRpcUrl: 'https://eth-mainnet.alchemyapi.io/v2/yourAlchemyId',
  },
})

Note: The above example is using chains from @wagmi/core/chains.

options

Options to pass to the Coinbase Wallet SDK.

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