Airdrop
(airdrop)
payable
Use this function in your app
import { prepareContractCall, sendTransaction } from "thirdweb";
const transaction = await prepareContractCall({
contract,
method: "function airdrop(address _refer) payable returns (bool)",
params: [_refer]
});
const { transactionHash } = await sendTransaction({
transaction,
account
});