RoyaltiesERC2981Facet
RoyaltiesERC2981Facet
Inherits storage layout of ERC2981Storage. This facet uses access control.
royaltyInfo
Parameters
Name
Type
Description
tokenId
uint256
salePrice
uint256
Return Values
Name
Type
Description
[0]
address
[1]
uint256
setDefaultRoyalty
Sets the default royalty receiver and default royalty base points (1/100 of a percent).
Parameters
Name
Type
Description
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?