thirdweb

AirdropERC20

Ethereum
etherscanblockscout

Airdrop

(airdrop)

payable

_tokenAddress

_tokenOwner

_recipients

Input should be passed in JSON format - Ex: ["0x..."]

_amounts

Input should be passed in JSON format - Ex: ["0"]

The native currency value (in Ether) to send with this transaction (ex: 0.01 to send 0.01 native currency).

Sign in

Use this function in your app


import { prepareContractCall, sendTransaction } from "thirdweb"; const transaction = await prepareContractCall({ contract, method: "function airdrop(address _tokenAddress, address _tokenOwner, address[] _recipients, uint256[] _amounts) payable", params: [_tokenAddress, _tokenOwner, _recipients, _amounts] }); const { transactionHash } = await sendTransaction({ transaction, account });