(formerly WalletLink)
- Install Provider Package
npm install --save @coinbase/wallet-sdk
# OR
yarn add @coinbase/wallet-sdk
- 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
}
}
};