Skip to main content

RoyaltyFacet

RoyaltyFacet

supportsInterface

function supportsInterface(bytes4 interfaceId) external pure returns (bool)

Query if a contract implements an interface

Interface identification is specified in ERC-165. This function uses less than 30,000 gas.

Parameters

NameTypeDescription
interfaceIdbytes4The interface identifier, as specified in ERC-165

Return Values

NameTypeDescription
[0]booltrue if the contract implements interfaceID and interfaceID is not 0xffffffff, false otherwise

supportsInterfaces

function supportsInterfaces() external pure returns (bytes4[])

setRoyalty

function setRoyalty(uint256 tokenId, uint16 bps, address receiver) external

setDefaultRoyalty

function setDefaultRoyalty(uint16 defaultRoyaltyBPS, address receiver) external

getDefaultRoyalty

function getDefaultRoyalty() external view returns (uint16, address)