IRoyaltiesERC2981Facet
IRoyaltiesERC2981Facet
Interface for the NFT Royalty Standard https://eips.ethereum.org/EIPS/eip-2981
DefaultRoyaltyReceiverIsNull
Emitted when the defaultRoyaltyReceiver parameter is set to null.
RoyaltyBPSExceedsMax
Emitted when the defaultRoyaltyBPS parameter is above 10000.
DefaultRoyaltyChanged
Emitted when the royalties tier has changed.
Parameters
oldDefaultRoyaltyReceiver
address
The previous receiver.
newDefaultRoyaltyReceiver
address
The new receiver.
oldDefaultRoyaltyBPS
uint16
The previous BPS.
newDefaultRoyaltyBPS
uint16
The new BPS.
royaltyInfo
Parameters
_tokenId
uint256
- the NFT asset queried for royalty information
_salePrice
uint256
- the sale price of the NFT asset specified by _tokenId
Return Values
receiver
address
- address of who should be sent the royalty payment
royaltyAmount
uint256
- the royalty payment amount for _salePrice
setDefaultRoyalty
Sets the default royalty receiver and default royalty base points (1/100 of a percent).
Parameters
defaultRoyaltyReceiver
address
The account that receives the royalties.
defaultRoyaltyBPS
uint16
The base points (1/100 of a percent) of the default royalty.
Was this helpful?