{"id":26151040,"url":"https://github.com/coinspace/cashaddr","last_synced_at":"2025-09-19T12:14:35.115Z","repository":{"id":212752010,"uuid":"732230940","full_name":"CoinSpace/cashaddr","owner":"CoinSpace","description":"Bitcoin Cash CashAddr","archived":false,"fork":false,"pushed_at":"2025-08-28T07:46:02.000Z","size":123,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-08-28T13:45:06.823Z","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/CoinSpace.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":"2023-12-16T01:52:23.000Z","updated_at":"2025-08-28T07:46:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"39113c3c-b74d-49e3-9848-474fe8ec40d9","html_url":"https://github.com/CoinSpace/cashaddr","commit_stats":null,"previous_names":["coinspace/cashaddr"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/CoinSpace/cashaddr","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CoinSpace%2Fcashaddr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CoinSpace%2Fcashaddr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CoinSpace%2Fcashaddr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CoinSpace%2Fcashaddr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CoinSpace","download_url":"https://codeload.github.com/CoinSpace/cashaddr/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CoinSpace%2Fcashaddr/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275935055,"owners_count":25555525,"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","status":"online","status_checked_at":"2025-09-19T02:00:09.700Z","response_time":108,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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-03-11T06:25:03.386Z","updated_at":"2025-09-19T12:14:35.057Z","avatar_url":"https://github.com/CoinSpace.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cashaddr\n\nThis is a JavaScript implementation for the [CashAddr address](https://github.com/bitcoincashorg/bitcoincash.org/blob/master/spec/cashaddr.md) format used in Bitcoin Cash. It serves as a glue to integrate the [@scure/btc-signer](https://github.com/paulmillr/scure-btc-signer) library with Bitcoin Cash.\n\nThis library depends on and is heavily coupled with the [@scure/base](https://github.com/paulmillr/scure-base) and [@scure/btc-signer](https://github.com/paulmillr/scure-btc-signer) libraries.\n\n## Installation\n\n```bash\nnpm install cashaddr\n```\n\n## Usage\n\n```js\nimport { Address, NETWORK } from 'cashaddr';\nimport { hex } from '@scure/base';\n\nconst hash = hex.decode('f5bf48b397dae70be82b3cca4793f8eb2b6cdac9');\n\nconst address = Address(NETWORK).encode({\n  format: 'cashaddr',\n  type: 'pkh',\n  hash,\n});\nconsole.log(address);\n// bitcoincash:qr6m7j9njldwwzlg9v7v53unlr4jkmx6eylep8ekg2\n\nconst decoded = Address(NETWORK).decode('bitcoincash:qr6m7j9njldwwzlg9v7v53unlr4jkmx6eylep8ekg2');\nconsole.log(decoded);\n// { type: 'pkh', hash: Uint8Array(20) [...], format: 'cashaddr' }\n\nconst legacy = Address(NETWORK).encode({\n  format: 'legacy',\n  type: 'pkh',\n  hash,\n});\nconsole.log(legacy);\n// 1PQPheJQSauxRPTxzNMUco1XmoCyPoEJCp\n\nconst converted = Address(NETWORK).toCashAddress('1PQPheJQSauxRPTxzNMUco1XmoCyPoEJCp');\nconsole.log(converted);\n// bitcoincash:qr6m7j9njldwwzlg9v7v53unlr4jkmx6eylep8ekg2\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoinspace%2Fcashaddr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoinspace%2Fcashaddr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoinspace%2Fcashaddr/lists"}