Load blockchain info to a MongoDB

npm install blockchain-mongo
1 downloads in the last week
30 downloads in the last month

Build Status


You can use blockchain-mongo to load the entire blockchain to a MongoDB collection, it uses the service provided by

Since the process can be quite lengthy, there is also an option to resume loading (true by default).

Feel free to contribute and use.

Before installing

Make sure you have the a local running mongodb instance.


npm install blockchain-mongo


npm start

This will start loading the blockchain data into a db named 'blockchain' on your locally hosted MongoDB instance.


Currently there are two configurable parts, options in the main script and the mongo connection string in lib/mongo.js.


Feel free to contribute by adding tests :)


Please read about the API query limits to avoid getting your IP banned

npm loves you