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
...

Parameters

Returns

A prepared transaction object.