Private
contractPrivate
metadataSet the royalty recipient and fee
Rest
...args: [royaltyData: { await contract.roles.setDefaultRoyaltyInfo({
seller_fee_basis_points: 100, // 1% royalty fee
fee_recipient: "0x...", // the fee recipient
});
Royalty
Rest
...args: [royaltyData: { Set the royalty recipient and fee for a particular token
Rest
...args: [tokenId: BigNumberish, royaltyData: { const tokenId = 0;
await contract.roles.setTokenRoyaltyInfo(tokenId, {
seller_fee_basis_points: 100, // 1% royalty fee
fee_recipient: "0x...", // the fee recipient
});
Royalty
Rest
...args: [tokenId: BigNumberish, royaltyData: { Get the royalty recipient and fee
const royaltyInfo = await contract.royalties.getDefaultRoyaltyInfo();
console.log(royaltyInfo.fee_recipient);
console.log(royaltyInfo.seller_fee_basis_points);
Royalty
Get the royalty recipient and fee of a particular token
const royaltyInfo = await contract.royalties.getDefaultRoyaltyInfo();
console.log(royaltyInfo.fee_recipient);
console.log(royaltyInfo.seller_fee_basis_points);
Royalty
Generated using TypeDoc
Handle contract royalties
Remarks
Configure royalties for an entire contract or a particular token.
Example