setTransferValidator

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

Example

import { sendTransaction } from "thirdweb";
import { RoyaltyERC1155 } from "thirdweb/modules";
const transaction = RoyaltyERC1155.setTransferValidator({
contract,
validator: ...,
overrides: {
...
}
});
// Send the transaction
await sendTransaction({ transaction, account });
function setTransferValidator(
| { asyncParams: () => Promise<SetTransferValidatorParams> }
>,

Parameters

The options for the "setTransferValidator" function.

Type

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

Returns

let returnType: PreparedTransaction<
any,
AbiFunction,
>;

A prepared transaction object.