setMerkleRoot

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

Example

import { setMerkleRoot } from "thirdweb/extensions/airdrop";
const transaction = setMerkleRoot({
contract,
token: ...,
tokenMerkleRoot: ...,
resetClaimStatus: ...,
overrides: {
...
}
});
// Send the transaction
...
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.