thirdweb

Explore

Docs

Support

AirdropERC20

Airdrop ERC20

Airdrop ERC20 tokens or the chain's native token to a list of recipients.


thirdweb's AirdropERC20 contract

Airdrop ERC20 tokens or the chain's native token (e.g. ether for Ethereum mainnet) to a list of recipients.

The AirdropERC20 contract is suitable to use when you want to transfer ERC20 tokens or native tokens to a list of recipient addresses, where these recipients are not expected to individually claim their airdrop; they just receive it in a transfer.

When airdropping tokens with this contract, you specify:

  • The address of the ERC20 token being transferred. (For native tokens, the address used is 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE)

  • The address from which the token will be transferred to a list of the recipients.

  • The list of recipients of the airdrop.

  • The corresponding list for the amount of tokens to airdrop per recipient in the recipient list.

Estimated gas costs for airdropping tokens:

Cost of airdropping 1 ERC20 token: ~66,600 gas. Cost of airdropping each additional ERC20 token: ~32,526 gas.

    WRITE


  • READ

airdrop

payable

Lets contract-owner send ERC20 tokens to a list of addresses.


Inputs

_tokenAddress

address

_tokenOwner

address

_recipients

address[]

_amounts

uint256[]

Released by

thirdweb.eth

View all contracts

Details

  • Release Date

    Dec 02, 2022

  • Licenses

    Apache-2.0, MIT


  • Extensions

  • Ownable


  • Share


    Learn about Release

    thirdweb © 2022

    FeedbackPrivacy PolicyTerms of ServiceGas Estimator