Giter Site home page Giter Site logo

frandlyn26 / cryptonote-explorer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kh4n-ro/cryptonote-explorer

0.0 0.0 0.0 2.12 MB

Cryptonote blockchain explorer built for the Alloy [XAO] Anonymous Cryptocurrency

Home Page: https://alloyexplorer.com

License: GNU General Public License v3.0

JavaScript 97.27% CSS 0.78% HTML 1.81% Dockerfile 0.01% Procfile 0.01% Pug 0.13%

cryptonote-explorer's Introduction

The Cryptonote Explorer

AngularJS NodeJS PRs Welcome Build passing

See it live on alloyexplorer.com

This is a Blockchain Explorer initially designed for tracking the Alloy [XAO] services and network status but currently supporting a growing number of cryptocurrencies.

Operations flow

The explorer gathers data from the coin daemon and compatible pools via rpc, processes everything, saves to a mongodb collection and uses websockets to send stats over to a nice angularjs frontend.

Goal

Provide a set of open-sourced services that I believe should be available by default for any existing cryptocurrency.

Available services

  • Blockchain Explorer
  • Live Blockchain Transactions
  • Pools Tracker
  • Profitability Calculator
  • Remote Nodes Tracker
  • Paper Wallet Generator
  • Exchange integration
  • API

Extra services

  • Mining Pool

Upcoming services

  • Web Miner
  • Web Transit Wallet
  • Alert/Info System
  • Daily Blockchain Backup
  • More exchanges
  • More coins
  • Documentation

Screenshots

Important: A live version of this explorer can be found @ https://alloyexplorer.com

Screenshot

Screenshot

Screenshot

Screenshot

Screenshot

Prerequisites

Click on a shield to go to the downloads page

NodeJS MongoDB NPM grunt-cli

Installation

Important: Make sure you have the above dependencies installed.

apt install git -Y
git clone https://github.com/kh4n-ro/cryptonote-explorer
cd cryptonote-explorer
npm update
npm install
sudo npm i -g grunt grunt-cli

To build run

grunt build

Config

This example config file is located under lib/config-example.js After entering your own data, save the file under lib/config.js

module.exports = {
  "NAME": "Alloy Explorer",
  "ADMIN": {
    "USERNAME": "ADMIN_USERNAME",
    "PASSWORD": "SOME_SECRET_PASSWORD",
    "SECRET": "SOME_SECRET_LONG_STRING"
  },
  "EMAIL": "ADMIN_EMAIL",
  "DB": {
    "HOST": "localhost",
    "DBNAME": "DATABASE_NAME",
    "RETRIES": 50
  },
  "FRONTEND": {
    "HOST": "alloyexplorer.com",
    "PORT": 12401,
    "TOKEN_EXPIRATION": 1200,
     "SSL" : {
       "ENABLED": false,
       "secureOptions": constants.SSL_OP_NO_SSLv3 | constants.SSL_OP_NO_SSLv2,
       "key": key,
       "cert": cert,
       "dhparam": dh
     }
  },
  "DAEMON": {
    "PROTOCOL" : "http",
    "HOST" : "193.37.138.140",
    "PORT" : 1811,
  },
  "REMOTES" : [{
    hostname : 'rpc.alloyproject.org',
    ip : '195.201.35.225',
    port : 1811
  }],
  "ALGORITHM"       : "cn/alloy",
  "LOCALPOOL"       : "",
  "WEBMINER"        : "",
  "PAPERWALLET"     : {
    coinUnitPlaces    : 12,
    coinSymbol        : 'XAO',
    coinName          : 'Alloy',
    coinUriPrefix     : 'alloy:',
    addressPrefix     : 54
  },
  "MINING_APPS"     : [
    {
      "NAME"       :  "XMR-Stak-Alloy",
      "LINK"       :  "https://github.com/alloyproject/xmr-stak-alloy/releases",
    },{
      "NAME"       :  "SRBMiner",
      "LINK"       :  "https://bitcointalk.org/index.php?topic=3167363.0",
    },{
      "NAME"       :  "xmrig-nvidia",
      "LINK"       :  "https://github.com/alloyproject/xmrig-nvidia/releases",
    }
  ],
  "BENCHMARKS"      : [
    {
      "MANUFACTURER" : "Intel",
      "TYPE"  : "CPU",
      "MODEL" : "I7-3770",
      "CONSUMPTION" : 92,
      "MEMORY" : 0,
      "HASHRATE" : 150
    },{
      "MANUFACTURER" : "AMD",
      "TYPE"  : "GPU",
      "MODEL" : "RX550",
      "CONSUMPTION" : 40,
      "MEMORY" : 2,
      "HASHRATE" : 220
    },{
      "MANUFACTURER" : "AMD",
      "TYPE"  : "GPU",
      "MODEL" : "RX550",
      "CONSUMPTION" : 43,
      "MEMORY" : 4,
      "HASHRATE" : 220
    },
  ],
  "BLOCKTARGETINTERVAL" : 180,
  "HISTORY_BLOCKS_LEN" : 64,
  "GET_POOLS_SECONDS" : 60,
  "GET_MEMPOOL_SECONDS" : 10,
  "GET_INFO_SECONDS" : 5,
  "GET_BLOCKSLIST_MINUTES" : 1,
  "LIGHT_BLOCKS_HISTORY" : 15,
  "HISTORY_CHART_MINUTES" : 30,
  "EXCHANGE_UPDATE_INTERVAL" : 60,
  "TO_TICKER" : "BTC-XAO",
  "EXCHANGES" : [
    {
      "NAME" : "TRADEOGRE",
      "URL" : "https://tradeogre.com/api/v1/markets"
    }
  ],
  "COINUNITS" : Math.pow(10, 12),
  "MAXSUPPLY" : 84000000, // 84M
  "SYMBOL" : "XAO",
  "HIDE_DOMINANT_POOLS" : true,
  "DOMINANCE_PERCENT" : 40,
  "POOLS" : [{
    "frontend": "xao.mine2gether.com",
    "api": "https://xao.mine2gether.com/api/stats",
    "rootapi": "https://xao.mine2gether.com/api/stats",
    "color": "#B45F04",
    "v": 1
  }],
  "VERBOSITY" : 2
}

Run

npm start

Keep in mind that this app is still in its early Alpha stage of development. Still many features to be added.

cryptonote-explorer's People

Contributors

frandlyn26 avatar kh4n-ro avatar radumalica 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.