ERC20 airdrop demos with claim based approach by reusing thirdweb SDK + Next.js starter.
- Register a new thirdweb account by connecting your wallet on dashboard and then Create an API Key like this

- Deploy ERC20 Max Supply contract: main contract to mint and airdrop token
- Deploy AirdropClaimable contract to transfer ERC20 / ERC721 / ERC1155 tokens to a list of recipient addresses, and supports push based, claim based (allowlist), and signature based airdrops
- Wallets used for testing must have enough funds to pay the gas fee
Create the .env file from .env.example if not present
cp -R ./.env.example ./.envConfigure values accordingly which output from prerequisites
- Retrieve API Keys like this

- Retrieve deployed contracts like this

NEXT_PUBLIC_TEMPLATE_CLIENT_ID=...
NEXT_PUBLIC_TOKEN_CONTRACT_ADDRESS=...
NEXT_PUBLIC_AIRDROP_CONTRACT_ADDRESS=...
NEXT_PUBLIC_ETH_PRIVATE_KEY=...
NEXT_PUBLIC_IS_MAIN_NET=falseyarnyarn devyarn buildyarn start- thirdweb SDK documentation: performant & lightweight SDK to interact with any EVM chain from Node, React and React Native
- React components and hooks: easily connect wallets & interact with smart contracts
- thirdweb Dashboard: manage your web3 apps
- thirdweb CLI: tools to create, build, and deploy web3 applications
- Merkle tree