Skip to content

Latest commit

 

History

History
37 lines (23 loc) · 846 Bytes

README.md

File metadata and controls

37 lines (23 loc) · 846 Bytes

XinFinScan

Local installation

Clone the repo

Download Nodejs and npm if you don't have them

Install dependencies:

npm install

Install mongodb:

MacOS: brew install mongodb

Centos: yum install -y mongodb

Ubuntu: sudo apt-get install -y mongodb-org

Config RPC and Populate the DB

This will fetch and parse the entire blockchain.

modify the var "config" (near the file end) like follow basic settings:

var config = 
{
    "rpc": 'http://localhost:8545',
    "blocks": [ {"start": 0, "end": "latest"}],
    "quiet": true,
    "terminateAtExistingDB": false,
    "listenOnly": false,//false:graber interval. true:grabe by listen new block.
    "out": "."
};