{"id":18521855,"url":"https://github.com/onai/btc-graph","last_synced_at":"2026-04-29T17:01:23.407Z","repository":{"id":112448145,"uuid":"266475304","full_name":"onai/btc-graph","owner":"onai","description":"BTC transaction graph generation","archived":false,"fork":false,"pushed_at":"2020-06-09T18:55:21.000Z","size":33,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-14T18:09:04.259Z","etag":null,"topics":["bitcoin","bitcoin-core","bitcoin-graph-study","bitcoin-transaction","graph"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/onai.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":"2020-05-24T05:21:12.000Z","updated_at":"2022-12-08T07:20:02.000Z","dependencies_parsed_at":"2023-04-08T09:46:15.697Z","dependency_job_id":null,"html_url":"https://github.com/onai/btc-graph","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/onai/btc-graph","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onai%2Fbtc-graph","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onai%2Fbtc-graph/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onai%2Fbtc-graph/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onai%2Fbtc-graph/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/onai","download_url":"https://codeload.github.com/onai/btc-graph/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onai%2Fbtc-graph/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32435122,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T13:34:34.882Z","status":"ssl_error","status_checked_at":"2026-04-29T13:34:29.830Z","response_time":110,"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":["bitcoin","bitcoin-core","bitcoin-graph-study","bitcoin-transaction","graph"],"created_at":"2024-11-06T17:27:59.873Z","updated_at":"2026-04-29T17:01:23.364Z","avatar_url":"https://github.com/onai.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BTC Graph\nTool to represent Bitcoin transaction graph in Giraph format \n\n# Table Of Contents\n1. [Background](#background)\n2. [How To Run](#how-to-run)\n\n\n# Background\nOur BTC graph analysis adapts https://github.com/alecalve/python-bitcoin-blockchain-parser to parse the blockchain stored locally by the bitcoin daemon. Using the Python library, we have developed a parser that parses each block in the blockchain and looks for transactions. Bitcoin transactions can have m inputs and n outputs. For each transaction, we identify the sender and receiver by matching the sender address and sender amount in the transaction input/output.\n\nThe parser then represents the graph in the format \n`[sender_id,sent_value,[[receiver_id, received_value],...]]`\nfor each sent amount in the transaction. This is one of the supported formats of Apache Giraph. Using this graph, we can analyze the transactions using various graph processing algorithms like BFS, DFS, PageRank, ShortestPath, etc.. \n\n# How To Run\n1. Install Bitcoin blockchain parser: https://github.com/alecalve/python-bitcoin-blockchain-parser\n2. Make sure the parser is in your `PYTHONPATH` OR copy the parser to the package’s folder `cp fti.py \u003cpython-bitcoin-blockchain-parser\u003e`\n3. Install `bitcoind` by following instructions for your setup here: https://bitcoin.org/en/full-node\n4. Run `bitcoind` with `bitcoind -daemon`. It might take a while for the daemon to get transactions\n5. Run `python fti.py \u003coutput_filename\u003e`\n6. You will find the graph in the output file specified above\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonai%2Fbtc-graph","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fonai%2Fbtc-graph","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonai%2Fbtc-graph/lists"}