setDefaultRoyaltyInfo

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

Example

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