Skip to content

zafarlameer-creator/explorer

 
 

Repository files navigation

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 Bitcoin Symbiotic [BTCS] 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

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/btcsymbiotic/explorer.git
cd explorer
nvm install 10
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": "Bitcoin Symbiotic 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        : 'BTCS',
    coinName          : 'Bitcoin Symbiotic',
    coinUriPrefix     : 'alloy:',
    addressPrefix     : 54
  },
  "MINING_APPS"     : [
    {
      "NAME"       :  "XMR-Stak-Bitcoin Symbiotic",
      "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-BTCS",
  "EXCHANGES" : [
    {
      "NAME" : "TRADEOGRE",
      "URL" : "https://tradeogre.com/api/v1/markets"
    }
  ],
  "COINUNITS" : Math.pow(10, 12),
  "MAXSUPPLY" : 84000000, // 84M
  "SYMBOL" : "BTCS",
  "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

No description, website, or topics provided.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

No contributors

Languages

  • JavaScript 97.3%
  • HTML 1.8%
  • Other 0.9%