CLI tool for extracting diverse data from Cosmos chain snapshots
cosmos-extractor
is a simple CLI tool designed to extract (dump) different types of data from Cosmos chain snapshots. Originally built for Axone’s internal needs, it’s open for anyone who wants to dig into Cosmos-based blockchains.
- Export chain store information.
- Export delegators and their delegations.
# Export delegators and their delegations to a CSV file for the Bitsong chain if they have between 1000 and 1500 BTSG staked.
$ cosmos-extractor extract delegators ./bitsong/data \
--chain-name bitsong \
--output ./extracts/bitsong-delegators.csv \
--hrp cosmos \
--min-shares 1000000000 \
--max-shares 1500000000
The project uses Make for building and managing the project. To build the project, run the following command:
make build
To install the CLI tool, run the following command:
make install