Skip to content

Instantly share code, notes, and snippets.

@FoxyDev42
Last active September 13, 2022 09:01
Show Gist options
  • Select an option

  • Save FoxyDev42/8f7a0e0d6ce018d311acb93ca723b394 to your computer and use it in GitHub Desktop.

Select an option

Save FoxyDev42/8f7a0e0d6ce018d311acb93ca723b394 to your computer and use it in GitHub Desktop.
## First create a new keypair using solana-keygen and transfer sol to it
## solana-keygen new -o helper.json
target=`solana address -k ./helper.json`
for i in `cat nfts.txt`
do
solana config set -k helper.json
spl-token create-account $i
solana config set -k rugged.json
spl-token transfer $i 1 $target --fee-payer helper.json
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment