setRoyaltyInfoForToken

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

Example

import { sendTransaction } from "thirdweb";
import { RoyaltyERC1155 } from "thirdweb/modules";
const transaction = RoyaltyERC1155.setRoyaltyInfoForToken({
contract,
tokenId: ...,
recipient: ...,
bps: ...,
overrides: {
...
}
});
// Send the transaction
await sendTransaction({ transaction, account });
function setRoyaltyInfoForToken(
| { asyncParams: () => Promise<SetRoyaltyInfoForTokenParams> }
>,

Parameters

The options for the "setRoyaltyInfoForToken" function.

Type

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

Returns

let returnType: PreparedTransaction<
any,
AbiFunction,
>;

A prepared transaction object.