Airdrop ERC20 tokens or the chain's native token to a list of recipients.
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:
0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE
)[
{
recipient: "0x123...",
amount: 1 // these amounts are in wei
},
{
recipient: "0xabc...",
amount: 10 // these amounts are in wei
}
]
note: token-owner must approve their tokens to this airdrop contract, by calling approval related function on the ERC20 token contract.
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.
Official patch for Multicall
disclosed in https://blog.thirdweb.com/vulnerability-report/
Dec 18, 2023
Apache-2.0, MIT