- Notifications
You must be signed in to change notification settings - Fork55
catchain/tonscan
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
An open source address, block and transaction explorer forTON Blockchain.
- Mainnet:https://tonscan.org
- Testnet:https://testnet.tonscan.org
If you'd like to add your address to our address book, you cat do it here:catchain/address-book. Please note that addresses from address book is not used in search. If you'd like to add your address into the search, please leave a messagehere.
If you'd like to submit a pull request, please runnpm run lint
and check for the errors before pushing. We also highly recommend opening an issue before doing anything, because this repository is a mirror and is not always up to date with the actual code base.
Before building the project you should fill the environment variables in.env
(or.env.testnet
) file. You may refer to.env.example
file for available variables.
All variables are optional, but we recommend filling at leastTONCENTER_API_KEY
(docs) andTONAPI_KEY
(details).
TYPESENSE_API_KEY
is used for real-time search. You may either use your owntypesense server (in that case you should also change theTYPESENSE_API_ENDPOINT
variable), or use our guest key. To obtain guest key, please leave a messagehere.
Then run:
npm install&& npm run prod
For testnet:
npm install&& npm run prod_testnet
npm run serve
To change host and port of the local server, change theAPP_DEV_SERVER_HOST
andAPP_DEV_SERVER_PORT
environment variables either in.env
file or in command line. For example:
APP_DEV_SERVER_HOST=0.0.0.0 APP_DEV_SERVER_PORT=8080 npm run serve
The result of the build is static files indist
folder. To start using tonscan, you may:
- Upload the
dist
folder to your web server (see example config below) - Upload
build.zip
toCloudflare Pages - Use any static file hosting, e. g.Firebase
server {server_name tonscan.test;root /path/to/tonscan/dist;index index.html;location/{try_files$uri$uri/ @rewrites; }location@rewrites{rewrite^(.+)$/index.html last; }}
About
The Open Network explorer