{"id":27136675,"url":"https://github.com/walletlink/walletlink","last_synced_at":"2025-04-08T03:01:16.822Z","repository":{"id":37562500,"uuid":"184357431","full_name":"coinbase/coinbase-wallet-sdk","owner":"coinbase","description":"An open protocol that lets users connect their mobile wallets to your DApp","archived":false,"fork":false,"pushed_at":"2025-03-29T00:10:39.000Z","size":27162,"stargazers_count":1568,"open_issues_count":12,"forks_count":632,"subscribers_count":167,"default_branch":"master","last_synced_at":"2025-03-29T11:37:01.865Z","etag":null,"topics":["coinbase","ethereum","ethereum-wallet"],"latest_commit_sha":null,"homepage":"https://coinbase.github.io/coinbase-wallet-sdk/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/coinbase.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-05-01T02:05:45.000Z","updated_at":"2025-03-29T00:10:41.000Z","dependencies_parsed_at":"2024-01-11T23:22:59.280Z","dependency_job_id":"735b7653-4123-4998-8bb2-f565883c07af","html_url":"https://github.com/coinbase/coinbase-wallet-sdk","commit_stats":{"total_commits":963,"total_committers":52,"mean_commits":18.51923076923077,"dds":0.7518172377985461,"last_synced_commit":"7af758fd7d7f6d002a27d28bc71d3b9ad68b4325"},"previous_names":["walletlink/walletlink","coinbasewallet/walletlink","coinbasewallet/walletlinkd"],"tags_count":89,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coinbase%2Fcoinbase-wallet-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coinbase%2Fcoinbase-wallet-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coinbase%2Fcoinbase-wallet-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coinbase%2Fcoinbase-wallet-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coinbase","download_url":"https://codeload.github.com/coinbase/coinbase-wallet-sdk/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247767220,"owners_count":20992542,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["coinbase","ethereum","ethereum-wallet"],"created_at":"2025-04-08T03:00:47.794Z","updated_at":"2025-04-08T03:01:16.747Z","avatar_url":"https://github.com/coinbase.png","language":"TypeScript","funding_links":[],"categories":["Software Development"],"sub_categories":["Protocol"],"readme":"# Coinbase Wallet SDK\n\n[![npm](https://img.shields.io/npm/v/@coinbase/wallet-sdk.svg)](https://www.npmjs.com/package/@coinbase/wallet-sdk)\n\n## Coinbase Wallet SDK allows dapps to connect to Coinbase Wallet\n\n1. [Coinbase Smart Wallet](https://keys.coinbase.com/onboarding)\n   - [Docs](https://www.smartwallet.dev/)\n1. Coinbase Wallet mobile for [Android](https://play.google.com/store/apps/details?id=org.toshi\u0026referrer=utm_source%3DWallet_LP) and [iOS](https://apps.apple.com/app/apple-store/id1278383455?pt=118788940\u0026ct=Wallet_LP\u0026mt=8)\n   - Desktop: Users can connect to your dapp by scanning a QR code\n   - Mobile: Users can connect to your mobile dapp through a deeplink to the dapp browser\n1. Coinbase Wallet extension for [Chrome](https://chrome.google.com/webstore/detail/coinbase-wallet-extension/hnfanknocfeofbddgcijnmhnfnkdnaad?hl=en) and [Brave](https://chromewebstore.google.com/detail/coinbase-wallet-extension/hnfanknocfeofbddgcijnmhnfnkdnaad?hl=en)\n   - Desktop: Users can connect by clicking the connect with an extension option.\n\n### Installing Wallet SDK\n\n1. Check available versions:\n\n   ```shell\n     # yarn\n     yarn info @coinbase/wallet-sdk versions\n\n     # npm\n     npm view @coinbase/wallet-sdk versions\n   ```\n\n2. Install latest version:\n\n   ```shell\n   # yarn\n   yarn add @coinbase/wallet-sdk\n\n   # npm\n   npm install @coinbase/wallet-sdk\n   ```\n\n3. Check installed version:\n\n   ```shell\n   # yarn\n   yarn list @coinbase/wallet-sdk\n\n   # npm\n   npm list @coinbase/wallet-sdk\n   ```\n\n### Upgrading Wallet SDK\n\n\u003e Migrating from v3 to v4? Please see our [v4 migration guide](https://www.smartwallet.dev/sdk/v3-to-v4-changes) for a full list of breaking changes.\n\n1. Compare the installed version with the latest:\n\n   ```shell\n   # yarn\n   yarn outdated @coinbase/wallet-sdk\n\n   # npm\n   npm outdated @coinbase/wallet-sdk\n   ```\n\n2. Update to latest:\n\n   ```shell\n   # yarn\n   yarn upgrade @coinbase/wallet-sdk --latest\n\n   # npm\n   npm update @coinbase/wallet-sdk\n   ```\n\n### Basic Usage\n\n1. Initialize SDK\n\n   ```js\n   const sdk = new CoinbaseWalletSDK({\n     appName: 'SDK Playground',\n   });\n   ```\n\n2. Make web3 Provider\n\n   ```js\n   const provider = sdk.makeWeb3Provider();\n   ```\n\n3. Request accounts to initialize a connection to wallet\n\n   ```js\n   const addresses = provider.request({\n     method: 'eth_requestAccounts',\n   });\n   ```\n\n4. Make more requests\n\n   ```js\n   provider.request('personal_sign', [\n     `0x${Buffer.from('test message', 'utf8').toString('hex')}`,\n     addresses[0],\n   ]);\n   ```\n\n5. Handle provider events\n\n   ```js\n   provider.on('connect', (info) =\u003e {\n     setConnect(info);\n   });\n\n   provider.on('disconnect', (error) =\u003e {\n     setDisconnect({ code: error.code, message: error.message });\n   });\n\n   provider.on('accountsChanged', (accounts) =\u003e {\n     setAccountsChanged(accounts);\n   });\n\n   provider.on('chainChanged', (chainId) =\u003e {\n     setChainChanged(chainId);\n   });\n\n   provider.on('message', (message) =\u003e {\n     setMessage(message);\n   });\n   ```\n\n### Developing locally and running the test dapp\n\n- The Coinbase Wallet SDK test dapp can be viewed here https://coinbase.github.io/coinbase-wallet-sdk/.\n- To run it locally follow these steps:\n\n  1. Fork this repo and clone it\n  1. From the root dir run `yarn install`\n  1. From the root dir run `yarn dev`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwalletlink%2Fwalletlink","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwalletlink%2Fwalletlink","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwalletlink%2Fwalletlink/lists"}