Skip to content

Latest commit

 

History

History
37 lines (30 loc) · 1.82 KB

File metadata and controls

37 lines (30 loc) · 1.82 KB

Cosmos gift tool

A tool for collecting Cosmos network addresses with balances for future gifts. This is a preparation tool, the output is a .csv file with addresses and balances of the current snapshot.

Requirements

Preparations

  1. Make sure you cosmoshub-2 node is synced to at least 1110001 blocks. To boost the sync process, you can follow this guide
  2. You cannot export the state while your node is running. Temporarily halt the node, and then perform the export
  3. Run the following command:
gaiad export --for-zero-height --height=1110000 --home=<PATH_TO_GAIA_HOME_DIRECTORY> > cosmos_genesis_snapshot.json
  1. You should get the cosmos_genesis_snapshot.json file at the current directory
  2. Install pandas
pip3 install pandas

Gifting

  1. Move cosmos_genesis_snapshot.json to $PATH_TO_LAUNCH_KIT/launch-kit/cosmos_gift_tool/data
  2. Run:
python3 cosmos_gift_snapshot.py
  1. The cosmos.csv file will show up in 5-10 seconds at $PATH_TO_LAUNCH_KIT/launch-kit/cosmos_gift_tool/data/cosmos.csv

Good job! You now have all the Cosmos addresses with non-zero balances of type cosmosaddress,cosmosbalance in the .csv file. You now need cyber address converter to convert cosmos addresses into cyber addresses. More details in cyber address converter README