Royalty ERC-721

Description

The RoyaltyERC721 contract is an extension that provides royalty functionality for ERC-721 tokens. It allows setting default royalty information as well as specific royalty details for individual tokens. This enables creators to receive a percentage of secondary sales as a royalty.

Callback Functions

FunctionDescription
onInstallCalled by the Core during the installation of the Extension. Sets default royalty information.
onUninstallCalled by the Core during the uninstallation of the Extension.

Fallback Functions

FunctionDescription
royaltyInfoReturns the royalty recipient and amount for a given sale based on the token ID and sale price.
getDefaultRoyaltyInfoReturns the default royalty information for the tokens, including the recipient and basis points (bps).
getRoyaltyInfoForTokenReturns the overridden royalty information for a specific token ID, including the recipient and basis points (bps).
setDefaultRoyaltyInfoSets the default royalty information for the tokens. Requires manager role.
setRoyaltyInfoForTokenSets specific royalty information for a given token ID. Requires manager role.

Required Interfaces

InterfaceID
ERC-7210x80ac58cd

Supported Interfaces

InterfaceID
IERC29810x2a55205a