Files

Coinbase Wallet SDK

Coinbase Wallet SDK lets developers connect their dapps to Coinbase Wallet on both mobile web (for iOS and Android) and desktop:

Installing and Upgrading

The installation package for Coinbase Wallet SDK (formerly WalletLink) is now named @coinbase/wallet-sdk.

Installing Wallet SDK

Install Coinbase Wallet SDK with yarn or npm.

Yarn

  1. Check available versions of Wallet SDK.
yarn info @coinbase/wallet-sdk versions
  1. Install a specific version or the latest version.
#yarn add @coinbase/[email protected]
yarn add @coinbase/wallet-sdk
  1. Check your installed version.
yarn list @coinbase/wallet-sdk

Npm

  1. Check available versions of Wallet SDK.
npm view @coinbase/wallet-sdk versions
  1. Install a specific version or the latest version.
#npm install @coinbase/[email protected]
npm install @coinbase/wallet-sdk
  1. Check your installed version.
npm list @coinbase/wallet-sdk

Upgrading Wallet SDK

Upgrade Coinbase Wallet SDK with yarn or npm.

Yarn

  1. Compare your installed version of Coinbase Wallet SDK with the latest available version.
yarn outdated @coinbase/wallet-sdk
  1. Update Coinbase Wallet SDK to the latest.
yarn upgrade @coinbase/wallet-sdk --latest

Npm

  1. Compare your installed version of Coinbase Wallet SDK with the latest available version.
npm outdated @coinbase/wallet-sdk
  1. If necessary, update package.json with the latest major version.
{
  "dependencies": {
    "@coinbase/wallet-sdk": "^3.0.0"
  }
}
  1. Update Coinbase Wallet SDK to the latest available version.
npm update @coinbase/wallet-sdk

Attributions