How you build an ERC20 airdrop - Allowlist with merkle tree
thirdweb
View ChannelAbout
This is the best place to learn how to become a full-stack blockchain developer. You'll learn how to build across every EVM chain, and become familiar with the fundamental components of blockchain development, including: - Smart contracts - Wallets - Infrastructure - Payments. We upload new tutorials and guides every week which teach you how to build and ship working Web3 apps, including: - NFT Drops - Marketplaces - Web3 Games - Decentralised social media And much more... Subscribe to be notified when our next video drops!
Latest Posts
Video Description
In this video, learn how to build a claimable ERC-20 airdrop. This means that a user can claim their tokens and pay for their own gas to claim the tokens. In this tutorial we will build a merkle tree generator to create a merkle tree root for you contract. We will deploy an ERC-20 and an airdrop contract and build a web3 application to claim tokens. **Mumbai testnet support has been officially deprecated. Transition to the Amoy testnet for improved scalability and reduced gas fees.** GitHub repo: https://github.com/thirdweb-example/claimable-erc20-youtube Guide: https://blog.thirdweb.com/create-an-nft-mint-farcaster-frame/ ERC-20 Token contract: https://thirdweb.com/thirdweb.eth/TokenERC20 ERC-20 Airdrop contract: https://thirdweb.com/thirdweb.eth/AirdropERC20Claimable thirdweb Engine Docs: https://portal.thirdweb.com/engine/getting-started How to setup local thirdweb Engine: https://youtu.be/HfZ6uVqC9JY thirdweb API: https://thirdweb.com/dashboard/settings Creating an API: https://youtu.be/G3bvXfE-OMg thirdweb Docs: https://portal.thirdweb.com/ Join our Community of over 30,000 Web3 builders: https://discord.gg/thirdweb thirdweb Official Site: https://thirdweb.com/dashboard thirdweb Twitter: https://twitter.com/thirdweb Timestamps: 00:00 Demo of claimable ERC-20 airdrop 02:40 What is a merkle tree and why use it for an allowlist 04:22 Overview of how to create a claimable ERC-20 airdrop 05:50 Create a new thirdweb project 07:55 Build a merkle tree generator 12:10 Deploy ERC-20 and ERC-20 airdrop contracts 19:45 Build a claimable ERC-20 airdrop app 28:15 Create a function to generate a merkle proof for the connected wallet 32:48 Conclusion
Upgrade Your Smartphone Experience
AI-recommended products based on this video

Nineplus 1300Mbps Dual 5Dbi Antennas 5G/2.4G WiFi Adapter for Desktop PC Laptop Windows11/10/8/7/Vista/XP, USB 3.0 Wireless Adapter for Desktop Computer Network Adapters
![TORRAS 12FT Military-Grade Shatterproof for Samsung Galaxy S25 Ultra Screen Protector [9H+ Aerospace Tempered Glass& One-Pull Installation] Fingerprint Full Coverage Fit Bubble Free 6.8″ GlassGo X](https://m.media-amazon.com/images/I/71Sef3FnunL._AC_UL960_FMwebp_QL65_.jpg)
TORRAS 12FT Military-Grade Shatterproof for Samsung Galaxy S25 Ultra Screen Protector [9H+ Aerospace Tempered Glass& One-Pull Installation] Fingerprint Full Coverage Fit Bubble Free 6.8″ GlassGo X
![TORRAS 12FT Military-Grade Shatterproof for Samsung Galaxy S25 Plus / S25+ Screen Protector [9H+ Aerospace Tempered Glass& One-Pull Installation] Full Coverage Fit Bubble Free 6.7″ GlassGo X](https://m.media-amazon.com/images/I/71HG-cFzV1L._AC_UL960_FMwebp_QL65_.jpg)
TORRAS 12FT Military-Grade Shatterproof for Samsung Galaxy S25 Plus / S25+ Screen Protector [9H+ Aerospace Tempered Glass& One-Pull Installation] Full Coverage Fit Bubble Free 6.7″ GlassGo X

Deeyaple USB C to Aux, 4FT/1.2M, Type C to 3.5mm Audio Cable Headphone Jack Cable for Car Mobile Phone, iPhone 16 15, iPad Pro, Samsung Galaxy S24 S23 S2010, Google Pixel,Oneplus Grey (1)

USB C Cable 6ft Type C Charger Cable 3.1A Fast Charging Nylon Braided USB A to USB C Charge Cord for Samsung Galaxy S25 S24 S23 S22 S21 S20 A12 A13 A14 A15 A16 A32 A53 5G Android Phone Tablet PS5 LG

45W Super Fast Charger USBC Charger, 2Pack 10FT Samsung Charger Fast Charging Cord Cable& Samsung Type C Charger Block for Galaxy S25 S24 S23 S22 S21 Ultra/Plus, Tab S10 S9 S8 S7,iPad,Android Phone

Anker USB C Charger Cable (6ft 100W, 2Pack), USB 2.0 Type C Fast Charging Cable for iPhone 15 / 15Pro / 15Plus / 15ProMax MacBook Pro 2020, iPad Pro 2020, iPad Air 4, Samsung Galaxy S23+/S23 Ultra ClimatePartner certified

Magnetic Wireless Charger for iPhone: Fodable 3 in 1 Charging Station for Multiple Apple Devices - Travel Charging Pad Dock for Apple Watch iPhone 16 15 14 13 12 Pro Max Plus & Airpod Global Recycled Standard

Magnetic Wireless Charger for iPhone - 3 in 1 Mag-Safe Charging Station for Multiple Devices Apple - Charger Stand Dock for Apple Watch iPhone 16 15 14 13 12 Pro Max Plus Airpods

for Magsafe Car Mount【20 Strong Magnets 】Magnetic Phone Holder for Car Phone Holder Mount Dash【360°】Cell Phone Mount for Car Accessories,Car Mount for iPhone 16 Pro Max 15 14 13 12 Plus MagSafe Cases

BASESAILOR iPhone 16 16e Car Charger Adapter 3Pack,USB to USBC Connector Type C Female to A Male Cable Converter for iPhone 15 14 Pro Max Plus,Apple Watch 10,Airpods 4,iPad mini 7,Samsung Galaxy S25
![Spigen Case for Galaxy S25 Case, Tough Armor (Ai) MagFit [Wireless Charging] Compatible with MagSafe - Black](https://m.media-amazon.com/images/I/71dL2NiwINL._AC_UL960_FMwebp_QL65_.jpg)
Spigen Case for Galaxy S25 Case, Tough Armor (Ai) MagFit [Wireless Charging] Compatible with MagSafe - Black

Spigen Case for iPhone 16 Case, Tough Armor Designed for Apple iPhone 16 - Black
![Spigen Case for iPhone 16 Pro Case, Tough Armor [MagFit] Compatible with MagSafe - Black](https://m.media-amazon.com/images/I/61rMnLID99L._AC_UL960_FMwebp_QL65_.jpg)
Spigen Case for iPhone 16 Pro Case, Tough Armor [MagFit] Compatible with MagSafe - Black
![Spigen Case for iPhone 16 Plus Case, Tough Armor (AI) [MagFit] Compatible with MagSafe - Black](https://m.media-amazon.com/images/I/61Ygh697e4L._AC_UL960_FMwebp_QL65_.jpg)
Spigen Case for iPhone 16 Plus Case, Tough Armor (AI) [MagFit] Compatible with MagSafe - Black

UGREEN USB to USB C Adapter & USB C to USB Adapter Combo 4-Pack, 10Gbps Type-C Converter, Car Charger Compatible with MacBook Pro, iPad Mac mini, iPhone 17/16, Galaxy, PC/Laptop, Hard Drive Enclosure

Magnetic Wireless Charger for iPhone - 3 in 1 Mag-Safe Charging Station for Multiple Devices Apple - Charger Stand Dock for Apple Watch iPhone 16 15 14 13 12 Pro Max Plus Airpods

USB C Car Charger, 3-Port 67W Super Fast Charging Dual USB-C & USB-A Car Charger Accessories Cigarette Lighter Adapter for iPhone 17 16e 16 15 14 13 12 11 Pro Max, iPad, Galaxy, Pixel, Android Phone

BASESAILOR iPhone 16 16e Car Charger Adapter 3Pack,USB to USBC Connector Type C Female to A Male Cable Converter for iPhone 15 14 Pro Max Plus,Apple Watch 10,Airpods 4,iPad mini 7,Samsung Galaxy S25
![200W Car Power Inverter, PiSFAU DC 12V to 110V AC Car Plug Adapter Outlet with [20W USB-C] /USB-Fast Charger(18W) / 4.8A Dual USB/car Charger for Laptop](https://m.media-amazon.com/images/I/61IRXv7G09L._AC_UL960_FMwebp_QL65_.jpg)
200W Car Power Inverter, PiSFAU DC 12V to 110V AC Car Plug Adapter Outlet with [20W USB-C] /USB-Fast Charger(18W) / 4.8A Dual USB/car Charger for Laptop

soundcore by Anker P20i True Wireless Earbuds, 10mm Drivers with Big Bass, Bluetooth 5.3, 30H Long Playtime, IPX5 Water-Resistant, 2 Mics for AI Clear Calls, 22 Preset EQs, Customization via App

soundcore by Anker Q20i Hybrid Active Noise Cancelling Headphones, Wireless Over-Ear Bluetooth, 40H Long ANC Playtime, Hi-Res Audio, Big Bass, Customize via an App, Transparency Mode, Ideal for Travel

soundcore by Anker Q20i Hybrid Active Noise Cancelling Headphones, Wireless Over-Ear Bluetooth, 40H Long ANC Playtime, Hi-Res Audio, Big Bass, Customize via an App, Transparency Mode, Ideal for Travel




