Airdrop
(airdrop)
nonpayable
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, uint256[] _tokenIds)",
params: [_tokenAddress, _tokenOwner, _recipients, _amounts, _tokenIds]
});
const { transactionHash } = await sendTransaction({
transaction,
account
});