Skip to content

Instantly share code, notes, and snippets.

@echohtp
Created June 28, 2022 22:44
Show Gist options
  • Save echohtp/c76e15b062004ddedcbb15589429fd62 to your computer and use it in GitHub Desktop.
Save echohtp/c76e15b062004ddedcbb15589429fd62 to your computer and use it in GitHub Desktop.
#!/bin/bash
#location to the holders file, one per line
input="/home/0xbanana/holders.txt"
#example metadata, use your own
metadatauri="https://bafkreiflfy44ytewrhyzxyly3y42s6j5rhcbw63ha4bvpcrm34fh7fpv3a.ipfs.dweb.link/"
#funded solana wallet
wallet="/home/0xbanana/wallet.json"
#rpc endpoint
rpc="https://api.mainnet-beta.solana.com"
while IFS= read -r line
do
metaboss -r $rpc mint one --keypair $wallet --receiver $line --external-metadata-uri $metadatauri
done < "$input"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment