Skip to main content

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

NameTypeDescription
tokenIduint256
salePriceuint256

Returns

NameTypeDescription
receiveraddress
royaltyAmountuint256