Tronscan API
Requirements •
Installation •
tronscan.org •
api.tronscan.org
Intro
Tronscan API provides data for the Tronscan Frontend. Tronscan API is built with Scala using Play Framework and Akka Streams.
The non-blocking architecture of Play combined with the reactive streams of Akka provides a high performance synchronisation system.
Features
- Import of the blockchain from Full/Solidity Node
- Swagger UI for API documentation
- EHCache / Redis Caching
- Socket.io API provides a stream of events from the blockchain
- Network Scanner scans the network using GRPC and hops between nodes to find all the nodes in the network
- GRPC Load Balancer uses data provided from the network scanner to find the fastest nodes to communicate with
- Vote Scraper makes periodic snapshots of the votes to provide historical vote data
- (Beta) Remote Device signing provides a websocket API to sign transactions from an external device
Requirements
- PostgreSQL 9.6
- Java 8
- Redis
- SBT
Installation
- Create a new database in PostgreSQL, for example
tron-explorer
- Create the schema by running the schema script
- Change the
slick.dbs.default
and db.default
connection details in application.conf
Running