This script has been created to ease the process of airdropping XRP and XRPL Tokens to holders of an NFT from your collection on XRPL. It will snapshot the holders, work out how much each holder is owed from the amount they hold and then distribute to them. It will also create a list of all the holders and the amount they were paid in a new file when it is finished.
- NodeJS https://nodejs.org/en/download/
- Seed for XRPL wallet to distribute from (with funds to send)
- Download the files from this repository
- Open a command prompt in the folder you downloaded the files to
- Run
npm installto install the required packages - Edit the
xrpconfig.jsonortokenconfig.jsonfile to add your details for the airdrop type you want - Run
node xrpairdrop.jsornode tokenairdrop.jsto start the script you wish to use - Wait....
- Complete!
The config.json file contains all the settings for the script. The settings are as follows:
seed- The seed for the wallet to distribute fromairdropTotal- The amount of XRP total to distribute overall, script calculates individual sharesissuer- The issuer of the Collectiontaxon- The taxon of the Collectionname- Collection name that appears in transaction Memonetwork- is the RPC you will be connecting to. I DO NOT SUGGEST congesting a public network as you will most likely get ratelimited or blocked. You can get a generous one for FREE and even fairly priced tiers through QuickNodeblacklist- An array of addresses to ignore, share amounts are calculated after these addresses are removed from the total
The config.json file contains all the settings for the script. The settings are as follows:
seed- The seed for the wallet to distribute fromairdropTotal- The amount of token total to distribute overall, script calculates individual sharestokenIssuer- The issuer of the TokencurrencyCode- The Currency CodenftIssuer- The issuer of the Collectiontaxon- The taxon of the Collectionname- Collection name that appears in transaction Memonetwork- is the RPC you will be connecting to. I DO NOT SUGGEST congesting a public network as you will most likely get ratelimited or blocked. You can get a generous one for FREE and even fairly priced tiers through QuickNodeblacklist- An array of addresses to ignore, share amounts are calculated after these addresses are removed from the total
This bot gets the holder snapshot using the xrpl.services API. Thanks for this great resource!
If you have any questions, my DMs are always open on
- Twitter > @iamshiffed
- Discord > Shiffed#2071
- New Discord Handles > shiffed
- Email > [email protected]
Tips are always welcome and help continue development
XRPL: rm2AEVUcxeYh6ZJUTkWUqVRPurWdn4E9W