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.
- gaia
- cosmoshub-2 network synced at least
1110001block - python3
- launch-kit repo
- pip3
- Make sure you cosmoshub-2 node is synced to at least 1110001 blocks. To boost the sync process, you can follow this guide
- You cannot export the state while your node is running. Temporarily halt the node, and then perform the export
- Run the following command:
gaiad export --for-zero-height --height=1110000 --home=<PATH_TO_GAIA_HOME_DIRECTORY> > cosmos_genesis_snapshot.json- You should get the
cosmos_genesis_snapshot.jsonfile at the current directory - Install
pandas
pip3 install pandas- Move
cosmos_genesis_snapshot.jsonto$PATH_TO_LAUNCH_KIT/launch-kit/cosmos_gift_tool/data - Run:
python3 cosmos_gift_snapshot.py- The
cosmos.csvfile 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