Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/reecepbcups/cosmos-state-exporter
- Owner: Reecepbcups
- Created: 2023-11-28T04:51:59.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-28T21:50:38.000Z (about 1 year ago)
- Last Synced: 2024-11-04T19:42:24.018Z (about 2 months ago)
- Language: Python
- Size: 7.81 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.txtcp 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...
```