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