Prepares a transaction to call the "setMerkleRoot" function on the contract.
import { sendTransaction } from "thirdweb";import { setMerkleRoot } from "thirdweb/extensions/airdrop"; const transaction = setMerkleRoot({ contract, token: ..., tokenMerkleRoot: ..., resetClaimStatus: ..., overrides: { ... }}); // Send the transactionawait sendTransaction({ transaction, account });
function setMerkleRoot( >,
The options for the "setMerkleRoot" function.
>;
A prepared transaction object.