{"id":25454070,"url":"https://github.com/timxor/bitcoind-data-ingestion","last_synced_at":"2026-07-02T20:33:13.115Z","repository":{"id":77368390,"uuid":"345385931","full_name":"timxor/bitcoind-data-ingestion","owner":"timxor","description":"crypto payments bitcoind data ingestion","archived":false,"fork":false,"pushed_at":"2021-03-09T04:03:59.000Z","size":93,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-16T14:50:57.973Z","etag":null,"topics":["bitcoind","data","ingestion"],"latest_commit_sha":null,"homepage":"https://github.com/timxor/bitcoind-data-ingestion","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/timxor.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}},"created_at":"2021-03-07T15:46:06.000Z","updated_at":"2023-01-28T04:04:07.000Z","dependencies_parsed_at":"2023-03-07T09:45:22.132Z","dependency_job_id":null,"html_url":"https://github.com/timxor/bitcoind-data-ingestion","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/timxor/bitcoind-data-ingestion","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timxor%2Fbitcoind-data-ingestion","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timxor%2Fbitcoind-data-ingestion/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timxor%2Fbitcoind-data-ingestion/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timxor%2Fbitcoind-data-ingestion/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/timxor","download_url":"https://codeload.github.com/timxor/bitcoind-data-ingestion/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timxor%2Fbitcoind-data-ingestion/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259747215,"owners_count":22905310,"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":["bitcoind","data","ingestion"],"created_at":"2025-02-17T23:59:22.877Z","updated_at":"2025-10-27T23:32:12.842Z","avatar_url":"https://github.com/timxor.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bitcoind-data-ingestion\ncrypto payments bitcoind data ingestion\n\nSee [requirements.md](https://github.com/timxor/bitcoind-data-ingestion/blob/main/requirements.md)\n\n## 1. running docker/server/postgres\n\n```\nnpm install\nnode index.js\n```\nor\n```\ndocker-compose up\ndocker ps\n\n```\n\n## todo :helicopter:\n![summary](https://media.giphy.com/media/GoRkPquMO1qgw/giphy.gif)\n-----------------------------------------------------------------------------\n```\n1. create server\n2. read input files\n3. compute results\n4. save results to db\n5. output db summary\n6. wrap \u0026 rebuild docker\n```\n-----------------------------------------------------------------------------\n\n\n## 2. known accounts\n-----------------------------------------------------------------------------\n```\nWesley Crusher: mvd6qFeVkqH6MNAS2Y2cLifbdaX5XUkbZJ\nLeonard McCoy: mmFFG4jqAtw9MoCC88hw5FNfreQWuEHADp\nJonathan Archer: mzzg8fvHXydKs8j9D2a8t7KpSXpGgAnk4n\nJadzia Dax: 2N1SP7r92ZZJvYKG2oNtzPwYnzw62up7mTo\nMontgomery Scott: mutrAf4usv3HKNdpLwVD4ow2oLArL6Rez8\nJames T. Kirk: miTHhiX3iFhVnAEecLjybxvV5g8mKYTtnM\nSpock: mvcyJMiAcSXKAEsQxbW9TYZ369rsMG6rVV\nUnknown Customer:\n```\n-----------------------------------------------------------------------------\n\n\n## 3. input files containing account transactions\n\n- [transactions-1.json](https://github.com/timxor/bitcoind-data-ingestion/blob/main/transactions-1.json) or raw [transactions-1.json raw](https://raw.githubusercontent.com/timxor/bitcoind-data-ingestion/main/transactions-1.json)\n\n- [transactions-2.json](https://github.com/timxor/bitcoind-data-ingestion/blob/main/transactions-2.json) or raw [transactions-2.json raw](https://raw.githubusercontent.com/timxor/bitcoind-data-ingestion/main/transactions-2.json)\n\n## 4. transaction structure\n-----------------------------------------------------------------------------\n\n```\n\n\"transactions\":\n  [\n    {\n      \"involvesWatchonly\":true,\n      \"account\":\"\",\n      \"address\":\"mmFFG4jqAtw9MoCC88hw5FNfreQWuEHADp\",\n      \"category\":\"receive\",\n      \"amount\":10,\n      \"label\":\"\",\n      \"confirmations\":4,\n      \"blockhash\":\"a9ed13caa3f13c7168d4c4c52c0439502e46541217eb74b84608510dbc0caf74\",\n      \"blockindex\":41,\n      \"blocktime\":1524911287278,\n      \"txid\":\"a8afab2cc325086c50d080dc8b24bf49401870f8764a52f6f3cfd2304ffbb24f\",\n      \"vout\":84,\n      \"walletconflicts\":[],\n      \"time\":1524911246232,\n      \"timereceived\":1524911246232,\n      \"bip125-replaceable\":\"no\"\n    }\n  ],\n\"removed\":[],\n\"lastblock\":\"4f66926440f1b39fcd5db66609737f877ce32abfc68a945fbd049996ce7d0da2\"\n\n```\n-----------------------------------------------------------------------------\n\n\n## 5. expected output format\n-----------------------------------------------------------------------------\n```\nDeposited for Wesley Crusher: count=n sum=x.xxxxxxxx\nDeposited for Leonard McCoy: count=n sum=x.xxxxxxxx\nDeposited for Jonathan Archer: count=n sum=x.xxxxxxxx\nDeposited for Jadzia Dax: count=n sum=x.xxxxxxxx\nDeposited for Montgomery Scott: count=n sum=x.xxxxxxxx\nDeposited for James T. Kirk: count=n sum=x.xxxxxxxx\nDeposited for Spock: count=n sum=x.xxxxxxxx\nDeposited without reference: count=n sum=x.xxxxxxxx\nSmallest valid deposit: x.xxxxxxxx\nLargest valid deposit: x.xxxxxxxx\n```\n-----------------------------------------------------------------------------\n\n\n\n\n\n\n\n\n## 6. table for customers\n-----------------------------------------------------------------------------\n```\nname \"Wesley Crusher\"\naddress \"mvd6qFeVkqH6MNAS2Y2cLifbdaX5XUkbZJ\"\nvalid_deposits:\nvalid_deposits_sum:\ncount:\nsum:\nbalance:\n```\nsql command:\n```\nCREATE TABLE IF NOT EXISTS customers (\n\tid UUID NOT NULL PRIMARY KEY,\n  name VARCHAR(200) NOT NULL UNIQUE\n\taddress VARCHAR(200) NOT NULL UNIQUE\n);\n```\n-----------------------------------------------------------------------------\n\n\n## 7. table for transactions\n-----------------------------------------------------------------------------\n```\n1 name \"Wesley Crusher\"\n2 address \"mvd6qFeVkqH6MNAS2Y2cLifbdaX5XUkbZJ\"\n3 category \"receive\"\n4 amount 10\n5 confirmations 4\n6blackhash\"a9ed13caa3f13c7168d4c4c52c0439502e46541217eb74b84608510dbc0caf74\"\n7 blockindex 41\n8 blocktime 12334\n9txid\"a8afab2cc325086c50d080dc8b24bf49401870f8764a52f6f3cfd2304ffbb24f\"\n10 vout 84\n11 time 1524911246232\ntimereceived 1524911246232\n```\nsql command:\n```\nCREATE TABLE IF NOT EXISTS transactions (\n\tid UUID NOT NULL PRIMARY KEY,\n\tname VARCHAR(100) NOT NULL,\n\tcourse VARCHAR(100)\tNOT NULL,\n\temail_id UUID REFERENCES email (id)\n);\n\n\n\nCREATE TABLE IF NOT EXISTS email (\n\tid UUID NOT NULL PRIMARY KEY,\n\temail VARCHAR(200) NOT NULL UNIQUE\n);\n```\n-----------------------------------------------------------------------------\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimxor%2Fbitcoind-data-ingestion","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftimxor%2Fbitcoind-data-ingestion","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimxor%2Fbitcoind-data-ingestion/lists"}