Using this script, you can airdrop NFTs to token holders. For eg. Bonk
- Clone the repo
- Install Dependencies:
yarn install
- Add Necessary Config:
rpcUrl
: Your RPC URLunderdogUrl
: Underdog API URL. Devnet or Mainnet. Grab it hereunderdogApiKey
: Your Underdog API key. Grab it here
- Run the script:
node index.js
- To airdrop to any token holders, you'll need to assign it's mint to
tokenAddress
. You can find the address by searching the token name on birdeye.so
This script uses the getTokenLargestAccounts
RPC call to get the top 20 holders of given token and airdrops NFTs to them.
If you want more features to this, open an issue or join our Telegram chat