| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Shardeum Explorer serves as a comprehensive Data Collector, Indexer, and API Server for the Shardeum Network. It operates by collecting data from the distributor, indexing it for efficient search capabilities, and providing APIs and a Web Interface for easy access to this information.
Shardeum Explorer consists of three componenets:
The Explorer server uses Fastify.js for its backend implementation, while the User Interface is developed using NextJS. For data storage, we are using sqlite.
Before starting the explorer, be sure that the distributor and rpc services are up and running. Shardeum Explorer uses the distributor to collect data and the rpc service to decode the contract information.
If you are running a local Shardeum Network, you can start the distributor and rpc services with the following repos:
npm installUpdate the distributorInfo, collectorInfo and rpcUrl info in the src/config/index.ts file. If you're testing for a local network, you can use the default values. If you're starting for a testnet or prod network, update the values accordingly. (Be sure that your collectorInfo is in the subscriber list of the distributor.)
npm run preparenpm run collector << OR >> pm2 start --name explorer-collector npm -- run collectornpm run server << OR >> pm2 start --name explorer-server npm -- run server <port>http://localhost:6001 <<OR>> http://localhost:<port>npm run aggregator << OR >> pm2 start --name explorer-aggregator npm -- run aggregatorTo clean the old database, use:
npm run flushUsage endpoints are provided to track and manage usage statistics for each endpoint in the explorer server API. Key points regarding usage endpoints:
GET /is-alive this endpoint returns 200 if the server is running. GET /is-healthy currently the same as /is-alive but will be expanded
Contributions to Shardeum Explorer are highly encouraged! We welcome everyone to participate in our codebases, issue trackers, and any other form of communication. However, we expect all contributors to adhere to our code of conduct to ensure a positive and collaborative environment for all involved in the project.
| Back | FazBrowse Home | New Git URL |