{"name":"ethereumjs-blockchain","version":"3.3.0","description":"A module to store and interact with blocks","main":"index.js","scripts":{"coverage":"nyc npm run test && nyc report --reporter=text-lcov > .nyc_output/lcov.info","coveralls":"npm run coverage && coveralls <.nyc_output/lcov.info","lint":"standard","test":"tape ./test/index.js"},"repository":{"type":"git","url":"git+https://github.com/ethereumjs/ethereumjs-blockchain.git"},"keywords":["ethereum","blockchain"],"author":{"name":"mjbecze","email":"mjbecze@gmail.com"},"license":"MPL-2.0","bugs":{"url":"https://github.com/ethereumjs/ethereumjs-blockchain/issues"},"homepage":"https://github.com/ethereumjs/ethereumjs-blockchain#readme","dependencies":{"async":"^2.6.1","ethashjs":"~0.0.7","ethereumjs-block":"~2.1.0","ethereumjs-common":"~0.6.0","ethereumjs-util":"~6.0.0","flow-stoplight":"^1.0.0","levelup":"^1.3.2","lru-cache":"^4.1.3","memdown":"^1.1.0","safe-buffer":"^5.1.2","semaphore":"^1.1.0"},"devDependencies":{"coveralls":"^3.0.2","nyc":"^13.0.1","standard":"^11.0.1","tape":"^4.9.1"},"gitHead":"d64c30228997c8eb5a18b7328cc84f5242d30702","_id":"ethereumjs-blockchain@3.3.0","_npmVersion":"6.4.1","_nodeVersion":"8.12.0","_npmUser":{"name":"holgerd77","email":"Holger.Drewes@gmail.com"},"dist":{"integrity":"sha512-9p1ONULoSNKNlJspgsT3PAqZiNdDxlDbN6EZ6RfajnhRVbf3xzkqENgad0jI2n4GlBPPU1/5tRvQIh9OJy2KxQ==","shasum":"8d3566a5afb1f85a12a52a898247f1cbcbd39fa3","tarball":"http://registry-npm.ywwl.com/ethereumjs-blockchain/download/ethereumjs-blockchain-3.3.0.tgz","fileCount":7,"unpackedSize":76684,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbycx5CRA9TVsSAnZWagAA3s8P/2K4noeyqUdmx8ZpOzwx\nGRhBBSi3paGsNYxg16OVGTp4aRoOj8TfHtPvsImmINAC6Z2gHerYcExi5Xei\npl9EDsvC50VG6WzJcGHpm7hJ8xKh037LO+dnbeGK0SbGPE571mXcwcTntBEm\nCHUEarcc50A4yBZITGc4G7499BHOc3HcRI+UITOs6qVsddKj9HVAhqlMXSt4\nS963yelti4cim/CP9mZ+XVMM/grkuiUtQs8bXe1fllkBNlQm8Rn0cIHT+3Kd\nKf1IQu7ZEcBysjZhWaqt5/GpJInwRu130hyvok8HFnrUJQX+nDxRDno9tRwq\noJt9KVTluLh64TGAE0yck9/K9GYJFmi5M8iFbJ+acWueg7K4/7v18Q6OawOi\nA9Jr5fO6aV0tQ1Ro/0LaJ/UudmYxZOn0l0NdBRxoEu0FFtjLhHLJCkiF8p0U\nAW4dohPreh+qV1Er1Dj5fkLoPEy/JV0t6Vm2lVisQC05iP+S8W3Xv3izsyCT\nwodCs/UeHQRc6LzfjZGBROsKX5xLs31seag6nqgoeg5Q+uki6Hmb1CsKHHUH\n+7iYSdy0YaI0EIx/yA6nID6IgNBFNW5w/Pylefor81VSIaNURxZun6BunSkV\nXUy10NcHV/uJi9eaPSGMbS74zSivBIx+B5DAiAFDX9vyFPugLBOCldViuX78\nQv+z\r\n=B/aK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD+0194FS0TP4vJEAXGlJrwU4p7UPiL7j0i5IomCgy5hgIhAJbNJBYBFkHPrnlnctEd4lmxtK/airbm0+cMZa7nge+O"}],"size":16577,"noattachment":false,"key":"/ethereumjs-blockchain/-/ethereumjs-blockchain-3.3.0.tgz"},"maintainers":[{"email":"Holger.Drewes@gmail.com","name":"holgerd77"},{"email":"j-wasinger@hotmail.com","name":"jwasinger"},{"email":"aaron@kumavis.me","name":"kumavis"},{"email":"null_radix@riseup.net","name":"null_radix"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ethereumjs-blockchain_3.3.0_1539951737157_0.9329204090391834"},"_hasShrinkwrap":false,"deprecated":"New package name format for new versions: @ethereumjs/blockchain. Please update.","readme":"# SYNOPSIS\n\n[![NPM Package](https://img.shields.io/npm/v/ethereumjs-blockchain.svg?style=flat-square)](https://www.npmjs.org/package/ethereumjs-blockchain)\n[![Actions Status](https://github.com/ethereumjs/ethereumjs-blockchain/workflows/blockchain-test/badge.svg)](https://github.com/ethereumjs/ethereumjs-blockchain/actions)\n[![Coverage Status](https://img.shields.io/coveralls/ethereumjs/ethereumjs-blockchain.svg?style=flat-square)](https://coveralls.io/r/ethereumjs/ethereumjs-blockchain)\n[![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/ethereum/ethereumjs-lib?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge) or #ethereumjs on freenode\n\nA module to store and interact with blocks.\n\n# INSTALL\n\n`npm install ethereumjs-blockchain`\n\n# API\n\n[./docs/](./docs/README.md)\n\n# EXAMPLE\n\nThe following is an example to iterate through an existing Geth DB (needs `level` to be installed separately).\n\nThis module performs write operations. Making a backup of your data before trying it is recommended. Otherwise, you can end up with a compromised DB state.\n\n```javascript\nconst level = require('level')\nconst Blockchain = require('ethereumjs-blockchain').default\nconst utils = require('ethereumjs-util')\n\nconst gethDbPath = './chaindata' // Add your own path here. It will get modified, see remarks.\nconst db = level(gethDbPath)\n\nnew Blockchain({ db: db }).iterator(\n  'i',\n  (block, reorg, cb) => {\n    const blockNumber = utils.bufferToInt(block.header.number)\n    const blockHash = block.hash().toString('hex')\n    console.log(`BLOCK ${blockNumber}: ${blockHash}`)\n    cb()\n  },\n  err => console.log(err || 'Done.'),\n)\n```\n\n**WARNING**: Since `ethereumjs-blockchain` is also doing write operations\non the DB for safety reasons only run this on a copy of your database, otherwise this might lead\nto a compromised DB state.\n\n# EthereumJS\n\nSee our organizational [documentation](https://ethereumjs.readthedocs.io) for an introduction to `EthereumJS` as well as information on current standards and best practices.\n\nIf you want to join for work or do improvements on the libraries have a look at our [contribution guidelines](https://ethereumjs.readthedocs.io/en/latest/contributing.html).\n","publish_time":1539951737275,"_cnpm_publish_time":1539951737275,"dist-tags":{"latest":"4.0.4"}}