IERC2981
View Source: contracts/interfaces/IERC2981.sol
↗ Extends: IERC165
IERC2981
Functions
royaltyInfo
Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of
exchange. The royalty amount is denominated and should be paid in that same unit of exchange.
function royaltyInfo(uint256 tokenId,
uint256 salePrice)
external
view
returns(address receiver, uint256 royaltyAmount)
Arguments
Name | Type | Description |
---|---|---|
tokenId | uint256 | |
salePrice | uint256 |
Returns
Name | Type | Description |
---|---|---|
receiver | address | |
royaltyAmount | uint256 |