{"id":24652566,"url":"https://github.com/zh/bch-wallet-kit","last_synced_at":"2026-03-11T19:33:36.661Z","repository":{"id":273347007,"uuid":"919393997","full_name":"zh/bch-wallet-kit","owner":"zh","description":"Simple components to construct various BCH related applications - wallets, DEXes etc.","archived":false,"fork":false,"pushed_at":"2025-06-05T06:39:14.000Z","size":697,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-18T21:29:04.391Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/zh.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-01-20T10:06:49.000Z","updated_at":"2025-06-05T06:39:15.000Z","dependencies_parsed_at":"2025-01-20T11:28:31.280Z","dependency_job_id":"4261316c-700d-4a13-b87d-1f6e5c78616c","html_url":"https://github.com/zh/bch-wallet-kit","commit_stats":null,"previous_names":["zh/bch-wallet-kit"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/zh/bch-wallet-kit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zh%2Fbch-wallet-kit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zh%2Fbch-wallet-kit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zh%2Fbch-wallet-kit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zh%2Fbch-wallet-kit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zh","download_url":"https://codeload.github.com/zh/bch-wallet-kit/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zh%2Fbch-wallet-kit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30395657,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-11T18:46:22.935Z","status":"ssl_error","status_checked_at":"2026-03-11T18:46:17.045Z","response_time":84,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":"2025-01-25T19:15:52.725Z","updated_at":"2026-03-11T19:33:36.645Z","avatar_url":"https://github.com/zh.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bch-wallet-kit\n\nSimple components to construct various BCH related applications - wallets, DEXes etc.\n\n[bch-wallet-kit](https://github.com/zh/bch-wallet-kit) is a great JavaScript library for working with Bitcoin Cash. It is using the services, provided by [FullStack.cash](https://fullstack.cash/) to communicate with BCH blockchain.\nThe real blockchain interactions are provided by [minimal-slp-wallet](https://www.npmjs.com/package/minimal-slp-wallet) CLI wallet library.\n\nSome library features:\n\n- [jotai](https://jotai.org/) state management for preserving current state\n- [minimal-slp-wallet](https://www.npmjs.com/package/minimal-slp-wallet) for blockchain operations\n- does not leave footprints in the browser - local storage etc. (as a result, you can have many wallets in the same browser)\n- minimal formating - no external frameworks, just simple CSS, included in the package\n\n## Usage\n\nInitial file structure can be created in many ways, but [vite](https://github.com/vitejs/vite) is pretty good for this.\n\n- Create new vite project\n\n```bash\nnpm create vite@latest vite-wallet -- --template react\ncd vite-wallet/\n```\n\n- Install required libraries:\n\n```bash\nnpm install minimal-slp-wallet bch-wallet-kit --save\n```\n\n- Copy minimal-slp-library to public/ folder (*TODO: simplify this step*)\n\n```bash\ncp node_modules/minimal-slp-wallet/dist/minimal-slp-wallet.min.js public/\n```\n\nInside *examples/* directory you can just run `npm run script` for this task. This task is also automatically executed for all examples, when starting the development environment with `npm run dev`. \n\n- Replace `src/App.jsx` with the following code:\n\n```js\nimport { useAtom } from 'jotai';\nimport { walletConnectedAtom } from 'bch-wallet-kit';\nimport { Notify, LoadScript, Mnemonic, Options, Wallet } from 'bch-wallet-kit';\nimport 'bch-wallet-kit/dist/BchWalletKit.css';\nimport './App.css';\n\nconst App = () =\u003e {\n  const [walletConnected] = useAtom(walletConnectedAtom);\n\n  return (\n    \u003cdiv className=\"app-container\"\u003e\n      \u003cLoadScript scriptSrc=\"/minimal-slp-wallet.min.js\" /\u003e\n      \u003cNotify /\u003e\n      \u003cdiv className=\"app-title\"\u003eBCH Wallet\u003c/div\u003e\n      {!walletConnected \u0026\u0026 (\n       \u003c\u003e\n        \u003cMnemonic /\u003e\n        \u003cOptions /\u003e\n       \u003c/\u003e\n      )}\n      \u003cWallet /\u003e\n    \u003c/div\u003e\n  );\n};\n\nexport default App;\n```\n\n- Start the application (by default running as `http://localhost:5173/`)\n\n```bash\nnpm run dev\n```\n\nSee [GH example directory](https://github.com/zh/bch-wallet-kit/tree/main/examples) for more examples.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzh%2Fbch-wallet-kit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzh%2Fbch-wallet-kit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzh%2Fbch-wallet-kit/lists"}