Skip to content

Latest commit

 

History

History
50 lines (36 loc) · 2.81 KB

README.md

File metadata and controls

50 lines (36 loc) · 2.81 KB

Cosmos Extractor

CLI tool for extracting diverse data from Cosmos chain snapshots

version lint build test codecov conventional commits semantic-release Contributor Covenant License

Purpose

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.

Features

  • Export chain store information.
  • Export delegators and their delegations.

Usage example

# 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

Build

The project uses Make for building and managing the project. To build the project, run the following command:

make build

Install

To install the CLI tool, run the following command:

make install