TomoScan provides a user friendly, details and perfection-oriented user interface for TomoChain block explorer. From a user perspective, TomoScan brings TomoChain’s transparency to users, because all block, transaction, finality, smart contracts, DApp and token information are read from TomoChain and shown to users
Clone or download
khaihkd Merge pull request #529 from khaihkd/master
 get block signer of 50 blocks per time & use url-join lib
Latest commit b5d5f83 Dec 17, 2018

README.md

TomoChain Explorer - Tomoscan

Join the chat at https://gitter.im/tomochain/tomoscan

Tomoscan is a BlockExplorer for TomoChain, built with VueJS, Nuxt and MongoDB. Tomoscan allows you to explore and search the TomoChain for transactions, addresses, tokens, prices and other activities taking place on TomoChain.

A demo instance connected to the TomoChain testnet is available at scan.testnet.tomochain.com.

Current Features

  • Browse blocks, transactions, accounts and contracts
  • View pending transactions
  • Upload & verify contract sources
  • Display the current state of verified contracts
  • Follow an address list
  • Responsive layout

Missing a feature? Please request it by creating a new Issue.

Usage notes

The explorer is still under heavy development, if you find any problems please create an issue or prepare a pull request.

Getting started

Requirements

Setup

Copy .env files

cp client/.env.example client/.env

Build & up docker

docker-compose -f docker-compose-dev.yml up --build

The site will run at http://localhost:3000, server will run at http://localhost:3333

Environment variables

Client (in client/.env)

API_URL=http://localhost:3333
WS_URL=http://localhost:3333
BASE_UNIT=TOMO

Server (in server/src/config/default.json)

cp server/src/config/default.json server/src/config/local.json
{
  "APP_ENV": "prod",
  "MONGODB": "localhost",
  "MONGODB_URI": "mongodb://localhost:27017/explorer",
  "redis": {
    "host": "localhost",
    "port": 6379,
    "password": null,
    "prefix": "TomoScan"
  },

  "WEB3_URI": "https://testnet.tomochain.com/",
  "WEB3_WS_URI": "wss://testnet.tomochain.com/ws",
  "DEBUG_QUERY": false,

  "BASE_UNIT": "TOMO",
  "PORT": 3333,
  "DEBUG": "express:*",

  "JWT_SECRET": "RANDOM_HASH",
  "APP_SECRET": "RANDOM_HASH",

  "SENDGRID_API_KEY": "",
  "SENDER_EMAIL": "",

  "CLIENT_URL": "http://localhost:3000/",
  "CMC_ID": 2570,
  "SLACK_WEBHOOK_URL": ""
}