Skip to content

Latest commit

 

History

History
33 lines (25 loc) · 782 Bytes

coinbasewallet.md

File metadata and controls

33 lines (25 loc) · 782 Bytes

Coinbase Wallet

(formerly WalletLink)

  1. Install Provider Package
npm install --save @coinbase/wallet-sdk

# OR

yarn add @coinbase/wallet-sdk
  1. Set Provider Options
import CoinbaseWalletSDK from '@coinbase/wallet-sdk';

const providerOptions = {
  coinbasewallet: {
    package: CoinbaseWalletSDK, // Required
    options: {
      appName: "My Awesome App", // Required
      infuraId: "INFURA_ID", // Required
      rpc: "", // Optional if `infuraId` is provided; otherwise it's required
      chainId: 1, // Optional. It defaults to 1 if not provided
      darkMode: false // Optional. Use dark theme, defaults to false
    }
  }
};

For more information on Coinbase Wallet Web3 provider.