setRoyaltyInfoForToken

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

Example

import { setRoyaltyInfoForToken } from "thirdweb/extensions/common";
const transaction = setRoyaltyInfoForToken({
contract,
tokenId: ...,
recipient: ...,
bps: ...,
overrides: {
...
}
});
// Send the transaction
...
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.