- Ensure Python 3.12 is installed (use Pyenv to install if needed).
- Ensure Poetry is installed (installation instructions here).
- From the root directory (the directory where pyproject.toml is located), run
poetry install
. - Run
poetry shell
to enter a shell where CLI commands can be run from.
The CLI tool assumes you have Sui client installed. Here are instructions to install Sui if you don't have it installed. The CLI tool also uses the Sui client's currently active address.
First, specify addresses in "addresses.json". This should be a JSON array of addresses like so:
[
"0x...01",
"0x...02",
"0x...03",
"0x...04"
]
Then, run capsule airdrop <RARITY>
. For example, if you want to airdrop common capsules, run capsule airdrop common
. The script will then fetch all capsules, filter out the ones with the correct rarity, and airdrop them to the addresses in addresses.json
. The script will raise an exception if there are not enough capsules for all the addresses. The max limit per airdrop transaction is 500.