A program for distributing tokens efficiently via uploading a Merkle root.
To claim via CLI instead of using https://jito.network/airdrop
, run the following commands.
- Build the cli (must have rust + cargo installed):
cargo b -r
- Run
claim
with the proper args. Be sure to replace<YOUR KEYPAIR>
with the full path of your keypair file. This will transfer tokens from the program account to a the associated token account owned by your keypair, creating it if it doesn't exist.
./target/release/cli --rpc-url https://api.mainnet-beta.solana.com --keypair-path <YOUR KEYPAIR> --airdrop-version 0 --mint <YOUR MINT> --program-id ADis3cccJHS6dmj8MPCG1NGGuXBN2ZSaaXFwKKU7UUgF claim --merkle-tree-path merkle_tree.json