Skip to main content

ContractRoyalty.setDefaultRoyaltyInfo() method

Set the royalty recipient and fee for a contract

Example

await contract.roles.setDefaultRoyaltyInfo({
seller_fee_basis_points: 100, // 1% royalty fee
fee_recipient: "0x...", // the fee recipient
});

Signature:

setDefaultRoyaltyInfo(royaltyData: z.input<typeof CommonRoyaltySchema>): Promise<TransactionResult<z.output<typeof CommonRoyaltySchema>>>;

Parameters

ParameterTypeDescription
royaltyDataz.input<typeof CommonRoyaltySchema>the royalty recipient and fee

Returns:

Promise<TransactionResult<z.output<typeof CommonRoyaltySchema>>>