Core
Other
Extension
Soulbound
Soulbound After Transactions

RMRKSoulboundAfterTransactions

RMRK team

RMRKSoulboundAfterTransactions

Smart contract of the RMRK Soulbound module where transfers are allowed for a limited a number of transfers.

Methods

getMaxNumberOfTransfers

function getMaxNumberOfTransfers() external view returns (uint256)

Gets the maximum number of transfers before a token becomes soulbound.

Returns

NameTypeDescription
_0uint256Maximum number of transfers before a token becomes soulbound

getTransfersPerToken

function getTransfersPerToken(uint256 tokenId) external view returns (uint256)

Gets the current number of transfer the specified token.

Parameters

NameTypeDescription
tokenIduint256ID of the token

Returns

NameTypeDescription
_0uint256Number of the token's transfers to date

isTransferable

function isTransferable(uint256 tokenId, address, address) external view returns (bool isTransferable_)

Used to check whether the given token is transferable or not.

If this function returns false, the transfer of the token MUST revert execution.If the tokenId does not exist, this method MUST revert execution, unless the token is being checked for minting.

Parameters

NameTypeDescription
tokenIduint256ID of the token being checked
_1addressundefined
_2addressundefined

Returns

NameTypeDescription
isTransferable_boolBoolean value indicating whether the given token is transferable

supportsInterface

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

Returns true if this contract implements the interface defined by interfaceId. See the corresponding https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP (opens in a new tab) section] to learn more about how these ids are created. This function call must use less than 30 000 gas.

Parameters

NameTypeDescription
interfaceIdbytes4undefined

Returns

NameTypeDescription
_0boolundefined

Events

Soulbound

event Soulbound(uint256 indexed tokenId)

Emitted when a token becomes soulbound.

Parameters

NameTypeDescription
tokenId indexeduint256ID of the token