import { sendTransaction } from "thirdweb";
import { RoyaltyERC721 } from "thirdweb/modules";
const transaction = RoyaltyERC721.setTransferValidator({
contract,
validator: ...,
overrides: {
...
}
});
// Send the transaction
await sendTransaction({ transaction, account });