{"name":"ethereumjs-blockchain","version":"3.2.1","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.0.1","ethereumjs-common":"~0.5.0","ethereumjs-util":"~5.2.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":"20b19a043aa3c6c7b7abb50c2b71b2ae55584a9c","_id":"ethereumjs-blockchain@3.2.1","_npmVersion":"6.2.0","_nodeVersion":"10.9.0","_npmUser":{"name":"holgerd77","email":"Holger.Drewes@gmail.com"},"dist":{"integrity":"sha512-E+jvuQAoLp7Ji3ddHsb3U5xnGqG5aJhnhxJ8llm1UZlT8EqqbjADGBfnvHYgWyhtPbrLTxQzoT9dPwqjKfORUA==","shasum":"0bc66e3daffb09726e49eec6ebf71b9f41f311a4","tarball":"http://registry-npm.ywwl.com/ethereumjs-blockchain/download/ethereumjs-blockchain-3.2.1.tgz","fileCount":7,"unpackedSize":76066,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbhnGlCRA9TVsSAnZWagAANu4P/jvEz3AgihJSqDqMKzDI\nbx4bY7Q1qxhodHEYq1rbonJpyHdHBMuYVyhg+RLf5zxtgJx7W8eBFfk5KwaX\nrZoA+9hl57vx41YJulgR1ww2smjk1B6yz6+dSWJISwWGry+U1lWAHrVj6z1P\nZMqGMSNlyYv2R9vPgpUSfjkphSBTkuNbVUkSGl09Zur8kdy/4AwBmHaenhSc\nR0H3ildnrrSiTzB2DRj7H33ybBml6KSM1IfarkFZ3mU984IvJsc/DmPMOa/7\nUbfjO2CG4ZRDfeEPk4fiwX9z/Ij7p7xnE9jrO/smyp4q/u2I/VvSjWBNSHmE\n9UJRY4yuZpY57veOPJfN75mHB/QHgVnj8UYa1oTPko1C8ZKqRUDl0/WRhGzy\nSFbc2GxtJWet3rtNJnxr8+SwX+vogDEHmhQl/LYKRL80kEf0SOJIXXcr2lup\noyfL5V/5taXs5MmYxSb43YlRSZ0N8PsOWzhCSNdUPdfSJHTdRxG2X2Ee9wmK\npcD2VgIX61wopc6z5qMdC/Lqo7aZ0vFzhwMpgEY/5J/zS/m9Z24rH/Ppgxvb\nf48brGwlXIjR8Y2Kk/1uK0RUChFZs876PND4v7BRbvhR6sdgeEgmZLKJ7dZe\n+V6ehOPDw8DLAG5e7WHB+ZehmLeyyqhWRPqipA3Hc/vbyYRJNtlQdyB4plBK\nGvBg\r\n=pYys\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICdFPM8OVmcMuYLVFpzoWszevYt5e4O4EZE1LN6fCvxRAiEA858cXAyz2T3PE5r5ySFmZMxTtfRPxdGa5E/1cCZ4LxU="}],"size":16350,"noattachment":false,"key":"/ethereumjs-blockchain/-/ethereumjs-blockchain-3.2.1.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.2.1_1535537573219_0.9843761696847586"},"_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":1535537573398,"_cnpm_publish_time":1535537573398,"dist-tags":{"latest":"4.0.4"}}