{"id":23554747,"url":"https://github.com/alejoacosta74/processing-crypto-payments-bitcoind","last_synced_at":"2026-04-11T19:34:35.985Z","repository":{"id":128687578,"uuid":"343640227","full_name":"alejoacosta74/processing-crypto-payments-bitcoind","owner":"alejoacosta74","description":"Javascript based solution that reads deposit transactions from bitcoind’s rpc call listsinceblock, filters and store them in a database for later usage.","archived":false,"fork":false,"pushed_at":"2021-03-05T13:05:22.000Z","size":45,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-15T20:08:33.277Z","etag":null,"topics":["docker-compose","mongodb","mongoose","nodejs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alejoacosta74.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2021-03-02T04:01:37.000Z","updated_at":"2023-08-10T01:51:19.000Z","dependencies_parsed_at":"2023-03-30T06:04:43.006Z","dependency_job_id":null,"html_url":"https://github.com/alejoacosta74/processing-crypto-payments-bitcoind","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/alejoacosta74/processing-crypto-payments-bitcoind","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alejoacosta74%2Fprocessing-crypto-payments-bitcoind","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alejoacosta74%2Fprocessing-crypto-payments-bitcoind/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alejoacosta74%2Fprocessing-crypto-payments-bitcoind/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alejoacosta74%2Fprocessing-crypto-payments-bitcoind/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alejoacosta74","download_url":"https://codeload.github.com/alejoacosta74/processing-crypto-payments-bitcoind/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alejoacosta74%2Fprocessing-crypto-payments-bitcoind/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31693272,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-11T13:07:20.380Z","status":"ssl_error","status_checked_at":"2026-04-11T13:06:47.903Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["docker-compose","mongodb","mongoose","nodejs"],"created_at":"2024-12-26T12:25:10.185Z","updated_at":"2026-04-11T19:34:35.964Z","avatar_url":"https://github.com/alejoacosta74.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bitcoin daemon RPC TX deposit validation\n\n\u003cimg alt=\"MongoDB\" src =\"https://img.shields.io/badge/MongoDB-%234ea94b.svg?\u0026style=for-the-badge\u0026logo=mongodb\u0026logoColor=white\"/\u003e\n\n\u003cimg alt=\"Docker\" src=\"https://img.shields.io/badge/docker%20-%230db7ed.svg?\u0026style=for-the-badge\u0026logo=docker\u0026logoColor=white\"/\u003e\n\n\u003cimg alt=\"NodeJS\" src=\"https://img.shields.io/badge/node.js%20-%2343853D.svg?\u0026style=for-the-badge\u0026logo=node.js\u0026logoColor=white\"/\u003e\n\n## About\n\nThis project implements a solution that reads **deposit transactions** from bitcoind’s rpc call `listsinceblock`, filters and store them in a database for later usage.\n\n## Assumptions\n\nA deposit will be considered valid when the transaction's attributes match the following criteria:\n\n- `\"category\"` of type `\"receive\"`\n- `\"amount\"`  greater than zero (a TX with 'amount == 0' has not been considered as a valid deposit)\n- `\"confirmations\"` equal or greater than 6\n\n## Considerations\n\n- Only **unique** transactions are stored in the database.\n- When reading transactions from files `transactions-1.json` and `transactions-2.json`, if the transaction already exists in the database, the duplicated transaction is discarded. \n- Floating type is used to store the `amount` attribute in the database, in order to handle values up to 8 decimals.\n\n## Tools and dependencies\n\nThis project is implemented in *javascript* with *Node.js* and *MongoDb / Mongoose*\n\n\n## Requirements\n\nDocker Engine must be installed on local machine\n\n## Usage\n\n```bash\n$ clone https://github.com/alejoacosta74/processing-crypto-payments-bitcoind.git bitcoind-deposit-filter\n$ cd bitcoind-deposit-filter\n$ docker-compose up --build\n```\n\n## Expected output\n\n```bash\nDeposited for Wesley Crusher: count=35 sum=217.00000000\nDeposited for Leonard McCoy: count=15 sum=64.00000000\nDeposited for Jonathan Archer: count=18 sum=99.69000000\nDeposited for Jadzia Dax: count=11 sum=55.13000000\nDeposited for Montgomery Scott: count=24 sum=108.04593000\nDeposited for James T. Kirk: count=27 sum=1267.00848015\nDeposited for Spock: count=14 sum=688.88081478\nDeposited without reference: count=167 sum=3453.79101076\nSmallest valid deposit: 0.00000010\nLargest valid deposit: 99.49379661\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falejoacosta74%2Fprocessing-crypto-payments-bitcoind","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falejoacosta74%2Fprocessing-crypto-payments-bitcoind","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falejoacosta74%2Fprocessing-crypto-payments-bitcoind/lists"}