{"id":16807220,"url":"https://github.com/ryohey/node-stratum-client","last_synced_at":"2026-04-13T12:02:01.498Z","repository":{"id":150056614,"uuid":"121002566","full_name":"ryohey/node-stratum-client","owner":"ryohey","description":"Stratum protocol client for Node.js","archived":false,"fork":false,"pushed_at":"2018-02-10T11:00:48.000Z","size":9,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-31T14:44:09.282Z","etag":null,"topics":["bitcoin","nodejs","stratum","typescript"],"latest_commit_sha":null,"homepage":null,"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/ryohey.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":"2018-02-10T09:34:38.000Z","updated_at":"2018-04-23T03:26:35.000Z","dependencies_parsed_at":"2023-04-14T02:17:01.548Z","dependency_job_id":null,"html_url":"https://github.com/ryohey/node-stratum-client","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/ryohey/node-stratum-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryohey%2Fnode-stratum-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryohey%2Fnode-stratum-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryohey%2Fnode-stratum-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryohey%2Fnode-stratum-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ryohey","download_url":"https://codeload.github.com/ryohey/node-stratum-client/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryohey%2Fnode-stratum-client/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31751705,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T09:16:15.125Z","status":"ssl_error","status_checked_at":"2026-04-13T09:16:05.023Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["bitcoin","nodejs","stratum","typescript"],"created_at":"2024-10-13T09:53:11.928Z","updated_at":"2026-04-13T12:02:01.476Z","avatar_url":"https://github.com/ryohey.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# node-stratum-client\nStratum protocol client for Node.js\n\n## Install\n\n```bash\n$ npm install node-stratum-client --save\n```\n\n## How to use\n\n```js\nimport StratumClient from \"node-stratum-client\"\nconst client = new StratumClient()\nconst POOL_PORT = 4233\nconst POOL_HOST = \"example.com\"\nconst WORKER_NAME = \"ABCDabcd12345678\"\n\nclient.onNotify(res =\u003e {\n  console.log(\"notify\", res)\n})\nclient.onSetDifficulty(res =\u003e {\n  console.log(\"set difficulty\", res)\n})\nclient.onSocketError(error =\u003e {\n  console.error(\"socket error\", error)\n})\nclient.onSocketClose(() =\u003e {\n  console.log(\"socket closed\")\n})\nclient.connect(POOL_PORT, POOL_HOST)\n  .then(() =\u003e {\n    console.log(\"connection successful\")\n    return client.authorize(WORKER_NAME)\n  })\n  .then(res =\u003e {\n    console.log(\"authorize successful\", res)\n    return client.subscribe()\n  })\n  .then(res =\u003e {\n    console.log(\"subscription successful\", res)\n    return client.getTransactions(\"0\")\n  })\n  .then(res =\u003e {\n    console.log(\"getTransactions successful\", res)\n  })\n  .catch(error =\u003e {\n    console.error(\"error\", error)\n  })\n```\n\n## Development\n\n### Watch and build\n\n```bash\n$ npm start\n```\n\n### Run tests\n\n```bash\n$ npm run test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryohey%2Fnode-stratum-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fryohey%2Fnode-stratum-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryohey%2Fnode-stratum-client/lists"}