mirror of
https://github.com/hanzoai/account-sdk.git
synced 2026-09-24 16:55:42 +00:00
Coinbase Wallet SDK
Coinbase Wallet SDK lets developers connect their dapps to Coinbase Wallet on both mobile web (for iOS and Android) and desktop:
-
Mobile: Users can connect to your mobile web dapp through a deeplink to the dapp browser in Coinbase Wallet Mobile App.
-
Desktop: Users can connect to your desktop app with a QR code in the Coinbase Wallet Mobile App or with the Coinbase Wallet Chrome Extension.
Installing and Upgrading
The installation package for Coinbase Wallet SDK (formerly WalletLink) is now named
@coinbase/wallet-sdk.
- This readme contains brief instructions to get up and running.
- Visit our public developer docs for more detail, including samples for integrating Coinbase Wallet using libraries like web3-react, web3modal, Web3-Onboard, and wagmi.
Installing Wallet SDK
Install Coinbase Wallet SDK with yarn or npm.
Yarn
- Check available versions of Wallet SDK.
yarn info @coinbase/wallet-sdk versions
- Install a specific version or the latest version.
#yarn add @coinbase/[email protected]
yarn add @coinbase/wallet-sdk
- Check your installed version.
yarn list @coinbase/wallet-sdk
Npm
- Check available versions of Wallet SDK.
npm view @coinbase/wallet-sdk versions
- Install a specific version or the latest version.
#npm install @coinbase/[email protected]
npm install @coinbase/wallet-sdk
- Check your installed version.
npm list @coinbase/wallet-sdk
Upgrading Wallet SDK
Upgrade Coinbase Wallet SDK with yarn or npm.
Yarn
- Compare your installed version of Coinbase Wallet SDK with the latest available version.
yarn outdated @coinbase/wallet-sdk
- Update Coinbase Wallet SDK to the latest.
yarn upgrade @coinbase/wallet-sdk --latest
Npm
- Compare your installed version of Coinbase Wallet SDK with the latest available version.
npm outdated @coinbase/wallet-sdk
- If necessary, update
package.jsonwith the latest major version.
{
"dependencies": {
"@coinbase/wallet-sdk": "^3.0.0"
}
}
- Update Coinbase Wallet SDK to the latest available version.
npm update @coinbase/wallet-sdk
Attributions
- eth-rpc-errors under the MIT license