{"id":15202083,"url":"https://github.com/demining/bitcoin-iterate-google-colab","last_synced_at":"2025-04-12T12:50:40.799Z","repository":{"id":144620846,"uuid":"460593849","full_name":"demining/bitcoin-iterate-Google-Colab","owner":"demining","description":"Simple fast iterator to extract data from bitcoind's blockchain files Google Colab","archived":false,"fork":false,"pushed_at":"2022-07-02T01:16:15.000Z","size":7038,"stargazers_count":0,"open_issues_count":0,"forks_count":10,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-26T07:36:05.699Z","etag":null,"topics":["bitcoin","bitcoin-api","bitcoin-core","bitcoin-payment","bitcoin-transaction","bitcoin-wallet","colab","colab-notebook","colab-notebooks","colab-tutorial","colaboratory","google-colab","google-colab-notebook","google-colab-tutorial","google-colaboratory","google-colaboratory-notebooks"],"latest_commit_sha":null,"homepage":"","language":"C","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/demining.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":"2022-02-17T20:17:42.000Z","updated_at":"2024-08-12T20:20:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"d8e69fb0-dbbc-4077-9e29-a3b230585ccd","html_url":"https://github.com/demining/bitcoin-iterate-Google-Colab","commit_stats":{"total_commits":76,"total_committers":9,"mean_commits":8.444444444444445,"dds":0.2763157894736842,"last_synced_commit":"0b99280172cdd211286e7bfdd20dfde1bfdb945b"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/demining%2Fbitcoin-iterate-Google-Colab","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/demining%2Fbitcoin-iterate-Google-Colab/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/demining%2Fbitcoin-iterate-Google-Colab/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/demining%2Fbitcoin-iterate-Google-Colab/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/demining","download_url":"https://codeload.github.com/demining/bitcoin-iterate-Google-Colab/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248571329,"owners_count":21126516,"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":["bitcoin","bitcoin-api","bitcoin-core","bitcoin-payment","bitcoin-transaction","bitcoin-wallet","colab","colab-notebook","colab-notebooks","colab-tutorial","colaboratory","google-colab","google-colab-notebook","google-colab-tutorial","google-colaboratory","google-colaboratory-notebooks"],"created_at":"2024-09-28T04:00:41.934Z","updated_at":"2025-04-12T12:50:40.779Z","avatar_url":"https://github.com/demining.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"-------------------------\n### Run bitcoin-iterate-Google-Colab\n\nhttps://colab.research.google.com/drive/1OShIMVcFZ_khsUIBOIV1lzrqAGo1gfm_?usp=sharing\n\n-------------------------\n\nThis is some fast code to iterate over bitcoind's block files to\nextract blockchain data from the main blockchain.\n\n## To build:\n\n1. make\n\n## Things you can do:\n\nShow block hash and transaction size for each transaction in the main chain:\n\n\t./bitcoin-iterate -q --tx=%bh,%tl\n\nThis will produce output like:\n\n    000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f,204\n    00000000839a8e6886ab5951d76f411475428afc90947ee320161bbf18eb6048,134\n    000000006a625f06636b8bb6ac7b960a8d03705d1ace08b1a19da3fdcc99ddbd,134\n    0000000082b5015589a3fdf2d4baff403e6f0be035a5d9742c1cae6295464449,134\n    000000004ebadb55ee9096c9a2f8880e09da59c0d68b1c228da88e48844a1485,134\n\u0026hellip;\n\nShow output script sizes in the main chain (block number, transaction\nnumber, output number, output script length):\n\n\t./bitcoin-iterate -q --output=%bN,%tN,%oN:%ol\n\nThis will produce output like:\n\n\t0,0,0:67\n\t1,0,0:67\n\t2,0,0:67\n\t3,0,0:67\n\t4,0,0:67\n\u0026hellip;\n\nShow the five largest blocks, by height and blockhash:\n\n\t./bitcoin-iterate -q --block='%bl %bN %bh' | sort -nr | head -n5\n\nThis will produce output like:\n\n\t999993 343188 96395be50a116886fb04a1262aa89aaa765c4af524d0ae090000000000000000\n\t999991 355770 5ce1f5e58d5d718374b1bdecb474eae5cdd91e1b8a3256050000000000000000\n\t999990 327145 821196665ed237f53ca2c7eafe05c97d26743c07d2b539110000000000000000\n\t999989 345578 0294fa5b68babd848a1fe097b075a856bfd9eb9a619efd130000000000000000\n\t999989 333434 f9776021575b6e408d7745d115db75e17937fc40ab9f0e190000000000000000\n\u0026hellip;\n\nYou can see some examples by looking at the [manual page source](https://github.com/rustyrussell/bitcoin-iterate/blob/master/doc/bitcoin-iterate.1.txt).\n\n## Enhancements\n\nHappy to consider them!\n\nYou can reach me on IRC (rusty on #bitcoin-wizards on Freenode), and\nof course, via pull requests and the [Github bug\ntracker](https://github.com/rustyrussell/bitcoin-iterate/issues).\n\nGood luck!\u003cbr\u003e\nRusty Russell.\n\n----\n\n|  | Donation Address |\n| --- | --- |\n| ♥ __BTC__ | 1Lw2kh9WzCActXSGHxyypGLkqQZfxDpw8v |\n| ♥ __ETH__ | 0xaBd66CF90898517573f19184b3297d651f7b90bf |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdemining%2Fbitcoin-iterate-google-colab","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdemining%2Fbitcoin-iterate-google-colab","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdemining%2Fbitcoin-iterate-google-colab/lists"}