This repo contains miscellaneous scripts to speed up your Solana development. Just pick a file and run it. There's a list of all files at the end.
You can clone the repo and run the scripts or copy paste them un you existing TypeScript environment.
- Clone the repo
- Install Dependencies
pnpm install - Add env variables
- Run a Script
npx tsx scripts/nft/pullAllAirdroppedAddresses.ts
Environment Variables
Place these in .env or equivalent file
RPC_URLDAS_URLHELIUS_ENRICHED_URLHELIUS_API_KEY
Contributions are welcome. Please open an issue before contributing.
Important: Please keep your code readable and documented and add sufficient information about your script in the table below.
Open an issue or DM Wilfred on Twitter/X for support.
| Script Purpose | Script Path |
|---|---|
| Saves all the addresses an NFT was airdropped to in a CSV file | scripts/nft/pullAllAirdroppedAddresses.ts |
| Saves all the addresses of holders of an NFT collection to in a CSV file | scripts/nft/pullAllNftHolders.ts |
| Saves all the addresses that hold multiple NFTs of a collection to in a CSV file | scripts/nft/pullAllMultipleNftHolders.ts |
| Saves all the holders of a token to in a CSV file | scripts/nft/pullAllTokenHolders.ts |
| Saves all compressed nfts from a wallet address in a CSV file | scripts/nft/pullAllCompressedNfts.ts |