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
...

Parameters

Returns

A prepared transaction object.