Skip to main content

NFTCollection.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<TokenERC721, typeof TokenErc721ContractSchema>;

Remarks

Set your own royalties for the entire contract or per token