Skip to content

Latest commit

 

History

History
31 lines (18 loc) · 1.28 KB

README.md

File metadata and controls

31 lines (18 loc) · 1.28 KB

get-scrt-events

Alpha release -> if you find an error come let us know in discord #analytics

Has been tested with secretd-1.0.4

The json returned from the Secret Node /block_results endpoint requires some parsing to be useful for analysis. This application queries a remote node for all block_results and stores the parsed data in a postgresql database.

For a more thorough explanation of how the data is parsed, click here.

Hasura is then used to make this data queryable via graphql.

Quickstart - Docker

This quickstart requires docker and docker-compose to be installed.

The get-scrt-events application can be built with the following command.

docker build . -t scrt_events:latest

To customize the chain-id and remote node queried, the environment variables for the events-api application in the docker-compose.yml can be adjusted.

The application can then be started with the following command.

docker-compose up -d

To query the database from a front-end go to localhost:8080: for graphql support go to the 'Data' tab and track the tables + relationships.