Coder Social home page Coder Social logo

explorer's Introduction

NUKOexplorer

Live Version: explorer.nekonium.org

Local installation

Clone the repo

git clone https://github.com/nekonium/explorer

Download Nodejs and npm if you don't have them

Install dependencies:

npm install

Install mongodb:

MacOS: brew install mongodb

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

Populate the DB

This will fetch and parse the entire blockchain.

Configuration file: /tools/config.json

Basic settings:

{
    "gethPort": 8293, 
    "blocks": [ {"start": 0, "end": "latest"}],
    "quiet": false,
    "terminateAtExistingDB": true,
    "listenOnly": false
}

blocks is a list of blocks to grab. It can be specified as a list of block numbers or an interval of block numbers. When specified as an interval, it will start at the end block and keep recording decreasing block numbers.

terminateAtExistingDB will terminate the block grabber once it gets to a block it has already stored in the DB.

quiet prints out the log of what it is doing.

listenOnly When true, the grabber will create a filter to receive the latest blocks from gnekonium as they arrive. It will not continue to populate older block numbers.

Note: When listenOnly is set to true, the blocks option is ignored.

Note 2: terminateAtExistingDB and listenOnly are mutually exclusive. Do not use terminateAtExistingDB when in listenOnly mode.

Run:

node ./tools/grabber.js

Leave this running in the background to continuously fetch new blocks.

You must run grabber.js in the background for the block explorer to work.

Stats

Tools for updating network stats are under development, but can be found in:

./tools/stats.js

explorer's People

Contributors

elaineo avatar kimisan avatar matthewjamesr avatar realcodywburns avatar fuyuton avatar empty2k12 avatar rguiu avatar tomotomo9696 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.