{"id":13773030,"url":"https://github.com/bitcoinjs/blkdat-stream","last_synced_at":"2025-05-11T05:34:08.061Z","repository":{"id":29300611,"uuid":"32833709","full_name":"bitcoinjs/blkdat-stream","owner":"bitcoinjs","description":"A blk*.dat streaming module, useful for parsing the Bitcoin blockchain","archived":false,"fork":false,"pushed_at":"2016-02-09T12:07:23.000Z","size":13,"stargazers_count":14,"open_issues_count":1,"forks_count":4,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-05-07T04:35:40.230Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/bitcoinjs.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}},"created_at":"2015-03-25T00:44:16.000Z","updated_at":"2024-01-02T22:20:23.000Z","dependencies_parsed_at":"2022-09-25T06:20:14.789Z","dependency_job_id":null,"html_url":"https://github.com/bitcoinjs/blkdat-stream","commit_stats":null,"previous_names":["dcousens/blkdat-stream"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitcoinjs%2Fblkdat-stream","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitcoinjs%2Fblkdat-stream/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitcoinjs%2Fblkdat-stream/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitcoinjs%2Fblkdat-stream/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bitcoinjs","download_url":"https://codeload.github.com/bitcoinjs/blkdat-stream/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253523690,"owners_count":21921815,"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":[],"created_at":"2024-08-03T17:01:10.482Z","updated_at":"2025-05-11T05:34:08.032Z","avatar_url":"https://github.com/bitcoinjs.png","language":"JavaScript","readme":"# blkdat-stream\n\n[![Version](http://img.shields.io/npm/v/blkdat-stream.svg)](https://www.npmjs.org/package/blkdat-stream)\n\nA lite blk\\*.dat streaming module, useful for parsing the Bitcoin blockchain\n\n**Note**: For a high performance C++ parser, see https://github.com/dcousens/fast-dat-parser\n\n\n### Example\n\n``` javascript\n// usage: cat blk*.dat | node this.js\n\nvar BlockStream = require('blkdat-stream')\nvar blockStream = new BlockStream() // for testnet3: new BlockStream(0x0709110b)\n\nprocess.stdin.pipe(new BlockStream()).on('data', function (blockBuffer) {\n\t// ... now, parse the block data buffer (is an atomic block)\n})\n```\n\nTo parse the returned block data, use a library such as [bitcoinjs-lib](https://github.com/bitcoinjs/bitcoinjs-lib) or [bitcore](https://github.com/bitpay/bitcore).\n","funding_links":[],"categories":["List of content"],"sub_categories":["Utilities"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitcoinjs%2Fblkdat-stream","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbitcoinjs%2Fblkdat-stream","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitcoinjs%2Fblkdat-stream/lists"}