Skip to content

opensquare-network/statescan-v2

Repository files navigation

statescan-v2

Statescan is a modularized and business pluggable explorer for substrate based chains.

Terminology

  • Data indexing: we use js scripts to query blockchain history data, normalize and save them to database.
  • Scan: it's a process that we index blockchain data in a height asc order.

Code structure

This code base can be divided into 3 parts: data indexing, servers(restful and graphql) and fronted pages.

Data indexing

Currently, we have the following packages for data indexing.

Data servers

We have a RESTful server and a GraphQL server, and the RESTful server will be finally replaced by the GraphQL server.

The site package call APIs from servers and render fronted pages.

Setup

We should install MongoDB first for data storage.

Then generally we should first index necessary data, then setup restful and graphql servers, and finally the site. Servers rely on the indexed data, and site reply on the APIs by the servers.

For more detail or questions, you can reach us in matrix or create issues here.

About

Explorer for substrate chains

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages