Airdrop ERC20 Token Claim DApp - Web3 Token Distribution Portal
React JS + Solidity (Ethereum / Sepolia Supported)
Description
Airdrop Token Claim DApp - Web3 Token Distribution Portal
One-Click Token Airdrops for Your Blockchain Project
A complete, production-ready token airdrop claim portal built with React and Solidity. Allow your community to claim tokens with a beautiful, modern interface. Perfect for ICOs, token launches, community rewards, and promotional campaigns.
šÆ What You Get
A fully functional Web3 airdrop system with:
- React Frontend - Modern, responsive UI with shadcn-inspired design
- Solidity Smart Contracts - Secure, gas-optimized, and auditable
- Admin Dashboard - Manage eligibility, deposits, and settings
- One-Click Deployment - Ready for Vercel, Netlify, or any static host
⨠Key Features
For Users
| Feature | Description |
|---|---|
| Wallet Connection | MetaMask and WalletConnect support |
| Eligibility Check | Instant verification of wallet eligibility |
| One-Click Claim | Simple, single-transaction token claim |
| Real-Time Stats | Live airdrop progress and availability |
| Mobile Responsive | Works perfectly on all devices |
For Admins
| Feature | Description |
|---|---|
| Add Eligible Wallets | Single or bulk address management |
| Set Claim Amount | Configure tokens per claim |
| Pause/Resume | Enable or disable claiming instantly |
| Deposit Tokens | Fund the airdrop contract |
| Withdraw Tokens | Retrieve unclaimed tokens anytime |
Technical
| Feature | Description |
|---|---|
| ERC-20 Compatible | Works with any ERC-20 token |
| Gas Optimized | Efficient contract design |
| Reentrancy Protected | Secure against common attacks |
| Verified Contracts | Etherscan verification included |
| TypeScript | Full type safety |
š„ļø Live Demo
Frontend Preview:
- Clean, dark-themed interface
- Public stats visible without wallet
- Smooth animations and transitions
- Professional admin panel
š How It Works
User Flow
1. Visit Portal ā See airdrop stats (no wallet needed)
2. Connect Wallet ā Check eligibility status
3. Claim Tokens ā One transaction, instant transfer
4. Done ā Tokens in wallet
Admin Flow
1. Deploy Contracts ā Token + Airdrop contracts
2. Fund Airdrop ā Deposit tokens to contract
3. Add Wallets ā Upload eligible addresses
4. Enable Claims ā Users can now claim
5. Monitor ā Track claims in real-time
š§ Technical Specifications
Frontend Stack
- React 18 - Latest React with hooks
- TypeScript - Type-safe development
- Ethers.js v6 - Blockchain interactions
- CSS Variables - Easy theming
- Vercel Ready - One-click deployment
Smart Contracts
- Solidity 0.8.20 - Latest stable version
- OpenZeppelin - Battle-tested libraries
- Hardhat - Development & deployment
- Multi-Network - Deploy to any EVM chain
Security Features
- ā ReentrancyGuard protection
- ā Ownable access control
- ā SafeERC20 transfers
- ā One-claim-per-wallet enforcement
- ā Pausable functionality
š What's Included
airdrop-claim/
āāā frontend/ # React Application
ā āāā src/
ā ā āāā App.tsx # Main application
ā ā āāā App.css # Styling
ā ā āāā config.ts # Contract addresses
ā ā āāā index.css # Global styles
ā āāā package.json
ā āāā vercel.json # Deployment config
ā
āāā contracts/ # Smart Contracts
ā āāā contracts/
ā ā āāā Airdrop.sol # Main airdrop contract
ā ā āāā DummyToken.sol # Sample ERC-20 token
ā āāā scripts/
ā ā āāā deploy.js # Deployment script
ā āāā hardhat.config.js # Hardhat configuration
ā
āāā Documentation
š Quick Start
1. Deploy Smart Contracts
cd contracts
npm install
npx hardhat run scripts/deploy.js --network sepolia
2. Configure Frontend
Update src/config.ts with your contract addresses:
export const AIRDROP_ADDRESS = "0x...";
export const TOKEN_ADDRESS = "0x...";
3. Deploy Frontend
cd frontend
npm install
npm run build
npx vercel
šØ Customization
Easy Theming
Change colors by editing CSS variables in index.css:
:root {
--primary: 0 0% 98%;
--background: 0 0% 3.9%;
--success: 142 76% 36%;
/* Add your brand colors */
}
Multi-Network Support
Deploy to any EVM-compatible network:
- Ethereum Mainnet
- Polygon
- BSC (Binance Smart Chain)
- Arbitrum
- Optimism
- Avalanche
- Base
- And more...
š Smart Contract Functions
User Functions
| Function | Description |
|---|---|
claim() | Claim allocated tokens |
isEligible(address) | Check if address can claim |
hasUserClaimed(address) | Check if already claimed |
getClaimStatus(address) | Get full status details |
Admin Functions
| Function | Description |
|---|---|
setClaimAmount(uint256) | Set tokens per claim |
setClaimEnabled(bool) | Enable/disable claims |
addEligibleAddress(address) | Add single address |
addEligibleAddresses(address[]) | Bulk add addresses |
removeEligibleAddress(address) | Remove address |
depositTokens(uint256) | Fund the contract |
withdrawTokens(uint256) | Withdraw specific amount |
withdrawAllTokens() | Withdraw everything |
š Security Considerations
This codebase follows security best practices:
- Access Control - Only owner can manage settings
- Reentrancy Protection - Guards against reentrancy attacks
- Safe Transfers - Uses OpenZeppelin's SafeERC20
- Input Validation - All inputs are validated
- Event Logging - All actions emit events for transparency
Note: Always conduct your own security audit before mainnet deployment.
š± Responsive Design
The portal is fully responsive and works on:
- Desktop computers
- Tablets
- Mobile phones
All features are accessible on any device with a Web3 wallet.
š ļø Requirements
Development
- Node.js 18+
- npm or yarn
- MetaMask or Web3 wallet
Deployment
- EVM-compatible blockchain
- Vercel/Netlify account (free tier works)
- Small amount of native tokens for gas
š” Use Cases
Perfect for:
- Token Launches - Distribute tokens to early supporters
- Community Rewards - Reward active community members
- Marketing Campaigns - Promotional token giveaways
- DAO Distributions - Governance token airdrops
- NFT Holder Rewards - Reward your NFT community
- Testnet Faucets - Distribute testnet tokens
š License
This item comes with a standard marketplace license. You may use it for personal or commercial projects.
š Support
Documentation and code comments are included to help you get started quickly. The codebase is clean, well-organized, and follows React/Solidity best practices.
š Changelog
Version 1.0.0
- Initial release
- React 18 + TypeScript frontend
- Solidity 0.8.20 smart contracts
- Admin dashboard
- Bulk address management
- Vercel deployment ready
Disclaimer: Web3.Market is a marketplace platform that facilitates the sale of digital products between independent sellers and buyers. We do not develop, endorse, or guarantee any product listed on this platform. All products are provided by third-party sellers and are sold "as is." Web3.Market assumes no responsibility or liability for the functionality, security, legality, or any use or misuse of products purchased through this platform. Buyers are solely responsible for evaluating the suitability of any product for their intended purpose and for ensuring compliance with all applicable laws and regulations. By purchasing, you acknowledge that Web3.Market shall not be held liable for any direct, indirect, incidental, or consequential damages arising from the use of any product.
One-time payment ⢠Lifetime access
Product Info
RPC Providers
Need a reliable RPC endpoint for your dApp? Get started with these trusted providers: