setDefaultRoyaltyInfo

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

Example

import { sendTransaction } from "thirdweb";
import { RoyaltyERC721 } from "thirdweb/modules";
const transaction = RoyaltyERC721.setDefaultRoyaltyInfo({
contract,
royaltyRecipient: ...,
royaltyBps: ...,
overrides: {
...
}
});
// Send the transaction
await sendTransaction({ transaction, account });
function setDefaultRoyaltyInfo(
| { asyncParams: () => Promise<SetDefaultRoyaltyInfoParams> }
>,

Parameters

The options for the "setDefaultRoyaltyInfo" function.

Type

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

Returns

let returnType: PreparedTransaction<
any,
AbiFunction,
>;

A prepared transaction object.