Skip to main content

Edition.royalties property

Configure royalties

Example

// royalties on the whole contract
contract.royalties.setDefaultRoyaltyInfo({
seller_fee_basis_points: 100, // 1%
fee_recipient: "0x...",
});
// override royalty for a particular token
contract.royalties.setTokenRoyaltyInfo(tokenId, {
seller_fee_basis_points: 500, // 5%
fee_recipient: "0x...",
});

Signature:

royalties: ContractRoyalty<TokenERC1155, typeof Edition.schema>;

Remarks

Set your own royalties for the entire contract or per token