kh4n-ro / cryptonote-explorer

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

Home Page:https://alloyexplorer.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

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

https://alloyexplorer.com

License:GNU General Public License v3.0


Languages

Language:JavaScript 97.3%Language:HTML 1.8%Language:CSS 0.8%Language:Pug 0.1%Language:Dockerfile 0.0%Language:Procfile 0.0%