Skip to content

ERC20 Airdrop demo on the sepolia testnet with the claim-based approach. A recipient who is in the whitelist will pay the gas fee when claiming

Notifications You must be signed in to change notification settings

make-everything-simple/erc20-airdrop-demo

Repository files navigation

erc20-airdrop-demo

ERC20 airdrop demos with claim based approach by reusing thirdweb SDK + Next.js starter.

Prerequisites

  1. Register a new thirdweb account by connecting your wallet on dashboard and then Create an API Key like this popup
  2. Deploy ERC20 Max Supply contract: main contract to mint and airdrop token
  3. 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
  4. Wallets used for testing must have enough funds to pay the gas fee

Setup credentials

Create the .env file from .env.example if not present

cp -R ./.env.example ./.env

Configure values accordingly which output from prerequisites

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=false

Usage

Install dependencies

yarn

Start development server

yarn dev

Create a production build

yarn build

Preview the production build

yarn start

Resources

About

ERC20 Airdrop demo on the sepolia testnet with the claim-based approach. A recipient who is in the whitelist will pay the gas fee when claiming

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published