Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/reecepbcups/cosmos-state-exporter

A CosmosSDK chain scheduled state exporter
https://github.com/reecepbcups/cosmos-state-exporter

Last synced: about 2 months ago
JSON representation

A CosmosSDK chain scheduled state exporter

Awesome Lists containing this project

README

        

# Cosmos State Exporter

A scheduled service to export the genesis state of Cosmos-SDK chain nodes.

**Pairs with** - https://github.com/Reecepbcups/exports-api

**Example** - https://exports.reece.sh

# Setup
```sh
# install base packages for the super user
sudo pip install -r requirements.txt

cp config.example.json config.json # then modify to your needs

# NOTES:
# - SDK v45 chains:
# - require [] for modules to export.
# - typically use 1> for output
# - SDK v46+ chains:
# - can specific modules such as ["bank", "auth", "gov"] etc...
# - typically use > for output

# Setup in a schedule
sudo crontab -e

# the script must run as sudo to access the node's data directory
# if you run the node as root, but interact with a user account.

# Run All:
0 2 * * * sudo /usr/bin/python3 /home/user/cosmos-state-exporter/snapshot.py

# OR Run specific
0 2 * * * sudo /usr/bin/python3 /home/user/cosmos-state-exporter/snapshot.py gaia,juno,terra...
```