Prepares a transaction to call the "setRoyaltyInfoForToken" function on the contract.
import { sendTransaction } from "thirdweb";import { RoyaltyERC1155 } from "thirdweb/modules"; const transaction = RoyaltyERC1155.setRoyaltyInfoForToken({ contract, tokenId: ..., recipient: ..., bps: ..., overrides: { ... }}); // Send the transactionawait sendTransaction({ transaction, account });
function setRoyaltyInfoForToken( options: BaseTransactionOptions< | SetRoyaltyInfoForTokenParams | { asyncParams: () => Promise<SetRoyaltyInfoForTokenParams> } >,): PreparedTransaction<any, AbiFunction, PrepareTransactionOptions>;
The options for the "setRoyaltyInfoForToken" function.
let options: BaseTransactionOptions< | SetRoyaltyInfoForTokenParams | { asyncParams: () => Promise<SetRoyaltyInfoForTokenParams> }>;
let returnType: PreparedTransaction< any, AbiFunction, PrepareTransactionOptions>;
A prepared transaction object.