Skip to content

A dead simple tool to scrape the default block endpoint of `substrate-api-sidecare` for the entire chain and allow queries on top of it.

Notifications You must be signed in to change notification settings

kianenigma/substrate-api-sidecar-dump

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

substrate-api-sidecar-dump 💩

A dead simple tool to scrape the default block endpoint of substrate-api-sidecare for the entire chain and allow queries on top of it.

For now only supports MongoDB. Might someday support TimescaleDB and more as well.

Work in progress.

Brain Dump

Current replacement for issue tracking 🧠.

Database stuff

  • allow database export.
  • buckets to optimize time based data https://docs.mongodb.com/manual/tutorial/model-time-data/.
  • Create index over a bunch of fields.
  • A fancy index field: scrape all data fields (or just the whole block) for any string that matches ss58 address format and store them. Then you can answer: Give me all blocks tha had some event affecting my account.
  • CI job to dump the export somewhere public every week or sth; could also use a remote mongodb instance.
  • allow other databases.
  • configurable database connection.
  • consider running this on a remote, public mongodb instance.
  • Provide write speed and query speed benchmarks.
  • Use $in instead of $unwind and benchmark results.

Engineering

sub-project: polkadot-pigeon

  • compute balance per week, per month, and per day + average for each
  • dump the results in a csv (as raw) + a pretty formatted pdf
  • encrypt + email both files + remove immediately.

About

A dead simple tool to scrape the default block endpoint of `substrate-api-sidecare` for the entire chain and allow queries on top of it.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published