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
Parameter | Type | Description |
---|---|---|
royaltyData | z.input<typeof CommonRoyaltySchema> | the royalty recipient and fee |
Returns:
Promise<TransactionResult<z.output<typeof CommonRoyaltySchema>>>