Giter Club home page Giter Club logo

tonscan's Introduction

TON Blockchain Explorer

An open source address, block and transaction explorer for TON Blockchain.

See it in action

Installation

git clone https://github.com/catchain/tonscan.git
cd tonscan
npm install

Configuring

Before building you must fill the environment variables in .env (or .env.testnet) file.

Note that all variables must be present, even if you're not going to change them. If you'd like to use the default value, leave it empty (e.g. ADDRBOOK_LOCATION=).

cp .env.example .env

For testnet:

cp .env.example .env.testnet

Available variables

Key Value
ADDRBOOK_LOCATION URL of important addresses metadata in json format. Example.
GETGEMS_GRAPHQL_ENDPOINT Self-explanatory, default: https://api.getgems.io/graphql
DEV_EXPLORER_ADDRESS Explorer with extended transaction info. Default: explorer.toncoin.org
TONCENTER_API_ENDPOINT Self-explanatory, default: https://toncenter.com/api/v2
TONCENTER_API_KEY Required. See the official website for more details.
TONCENTER_INDEX_API_ENDPOINT Toncenter indexer API endpoint.
TONCENTER_INDEX_API_KEY Self-explanatory.
TONAPI_ENDPOINT Self-explanatory.
TONAPI_KEY Self-explanatory.
EXTENDER_CONTRACTS_API_ENDPOINT Contract extender API, default: https://api.ton.cat/v2/contracts
TYPESENSE_API_ENDPOINT Typesense real-time search engine endpoint.
TYPESENSE_API_KEY Self-explanatory.
SENTRY_DSN sentry.io DSN key, used for error monitoring
CLOUDFLARE_INSIGHTS_TOKEN Cloudflare Analytics token

Building

npm run prod

For testnet:

npm run prod_testnet

Using

The result of the build is static files in dist folder. To start using tonscan, you may:

  • Upload the dist folder to your web server
  • Upload build.zip to Cloudflare Pages
  • Use any static file hosting, e. g. Firebase

Donations

EQAWpIzTMY69ClNr_rgb4t6Hw7vdmwnYwyW04WtMb4i9Kbzm

tonscan's People

Contributors

tonscan avatar ingria avatar lambda2331 avatar bitpapa-com avatar hiyorimi avatar johnnygogogo avatar delovoyhomie avatar defiton avatar awesome-doge avatar leon-todd 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.