{"id":19358350,"url":"https://github.com/paritytech/polkadot-onboard","last_synced_at":"2025-04-07T05:15:46.345Z","repository":{"id":65391474,"uuid":"526362940","full_name":"paritytech/polkadot-onboard","owner":"paritytech","description":"A wallet integration SDK to facilitate adding different type of wallets (extension, WC, Ledger) to Dapps.","archived":false,"fork":false,"pushed_at":"2024-10-10T10:02:51.000Z","size":3442,"stargazers_count":28,"open_issues_count":11,"forks_count":15,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-03-30T18:09:13.410Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://paritytech.github.io/polkadot-onboard","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/paritytech.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":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-08-18T20:26:07.000Z","updated_at":"2024-12-03T07:40:05.000Z","dependencies_parsed_at":"2023-11-07T03:15:38.537Z","dependency_job_id":"354f4927-d604-4e58-97c0-bfc1164286b4","html_url":"https://github.com/paritytech/polkadot-onboard","commit_stats":{"total_commits":174,"total_committers":7,"mean_commits":"24.857142857142858","dds":0.5517241379310345,"last_synced_commit":"e22970d2ca853f2732f313179b11056ba8ea7054"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paritytech%2Fpolkadot-onboard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paritytech%2Fpolkadot-onboard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paritytech%2Fpolkadot-onboard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paritytech%2Fpolkadot-onboard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/paritytech","download_url":"https://codeload.github.com/paritytech/polkadot-onboard/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247595335,"owners_count":20963943,"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":[],"created_at":"2024-11-10T07:11:19.129Z","updated_at":"2025-04-07T05:15:46.315Z","avatar_url":"https://github.com/paritytech.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"⚠️ ⚠️**This repository has been discontinued and it is no longer maintained by any team** ⚠️ ⚠️\n\n# @polkadot-onboard\n\n_@polkadot-onboard_ provides a set of packages for developers to easily onboard and add different type of polkadot wallets to their dapps. It provides a universal interface for working with different type of wallets (e.g. Injected-wallets, Wallet-Connect, hardware-wallets).\n\n## install the packages:\n\n```ts\n// npm\nnpm install \\\n @polkadot-onboard/core\\\n @polkadot-onboard/injected-wallets\\\n @polkadot-onboard/wallet-connect\\\n @polkadot-onboard/react\n\n// yarn\nyarn add \\\n @polkadot-onboard/core\\\n @polkadot-onboard/injected-wallets\\\n @polkadot-onboard/wallet-connect\\\n @polkadot-onboard/react\n```\n\n## example for using it in a react-app:\n\n```ts\nimport { WalletAggregator } from '@polkadot-onboard/core';\nimport { InjectedWalletProvider } from '@polkadot-onboard/injected-wallets';\nimport { WalletConnectProvider } from '@polkadot-onboard/wallet-connect';\nimport { PolkadotWalletsContextProvider, useWallets } from '@polkadot-onboard/react';\n\nconst APP_NAME = 'Polkadot wallets example';\n\nconst ConnectContainer = () =\u003e {\n    let walletConnectParams = {\n        projectId: '4fae...',\n        relayUrl: 'wss://relay.walletconnect.com',\n        metadata: {\n        name: 'Polkadot Demo',\n        description: 'Polkadot Demo',\n        url: '#',\n        icons: ['https://walletconnect.com/walletconnect-logo.png'],\n        },\n    };\n    let walletAggregator = new WalletAggregator([\n            new InjectedWalletProvider({}, APP_NAME),\n            new WalletConnectProvider(walletConnectParams, APP_NAME)\n    ]);\n    return (\n        \u003cPolkadotWalletsContextProvider walletAggregator={walletAggregator}\u003e\n        /*\n        all wallets are available inside this context to all children.\n\n        const { wallets } = useWallets();\n\n        each wallet provides a universal interface including a signer that can be used to sign messages and transactions:\n\n        interface BaseWallet {\n            ...\n            signer: Signer | undefined; // signer is available after connect() is called.\n            connect: () =\u003e Promise\u003cvoid\u003e;\n            disconnect: () =\u003e Promise\u003cvoid\u003e;\n            isConnected: () =\u003e boolean;\n            getAccounts: () =\u003e Promise\u003cAccount[]\u003e;\n            ...\n        }\n        */\n        \u003c/PolkadotWalletsContextProvider\u003e\n    );\n```\n\ncheck the full examples:\n\n- [headless](examples/react-headless/)\n- [react-next](examples/react-next)\n\nFor wallet-connect you need a mobile apps that supports wallet-connect.  \n[wallet-connect demo video](https://www.youtube.com/watch?v=5YkYi5HWeJQ)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparitytech%2Fpolkadot-onboard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fparitytech%2Fpolkadot-onboard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparitytech%2Fpolkadot-onboard/lists"}