This project serves two goals for chains inside the Polkadot ecosystem:
- chain-indexer: extract, transform and load on-chain data for post analysis to a database.
- API: bi-directional API for reading data to power dashboards/frontends.
-
Currently supported chains:
-
Currently supported DB:
- MongoDB
-
Currently supported dashboards/frontend:
- Node.js and npm
- A running MongoDb Atlas cluster
- Instructions for getting started with MongoDb Atlas and deploying a cluster link.
git https://github.com/buidl-labs/polka-analytics-api.git
cd polka-analytics-api
## Install all dependencies
npm install
## Set environment variables
export DB="your-atlas-connection-string"
export SENTRY_DNS="your-sentry-dsn-url"
## Fire up the engines:
npm start
Follow these instructions on how to get the connection string.
We use Sentry for monitoring errors.
Currently we use Render for production deployment.
4. The above tech stack feels quite centralized, how are you planning to remove these centralized single point of failures?
We are on the same page with the ethos of the crypto space and we plan to move our storage to IPFS as when we have been able to validate our core MVP thesis of the products we are building using this indexer.