setMerkleRoot

Prepares a transaction to call the "setMerkleRoot" function on the contract.

Example

import { sendTransaction } from "thirdweb";
import { setMerkleRoot } from "thirdweb/extensions/airdrop";
const transaction = setMerkleRoot({
contract,
token: ...,
tokenMerkleRoot: ...,
resetClaimStatus: ...,
overrides: {
...
}
});
// Send the transaction
await sendTransaction({ transaction, account });
function setMerkleRoot(
| { asyncParams: () => Promise<SetMerkleRootParams> }
>,

Parameters

The options for the "setMerkleRoot" function.

Type

| { asyncParams: () => Promise<SetMerkleRootParams> }
>;

Returns

let returnType: PreparedTransaction<
any,
AbiFunction,
>;

A prepared transaction object.