Core
Other
Extension
Reclaimable Child
Reclaimable Child

IRMRKReclaimableChild

RMRK team

IRMRKReclaimableChild

Interface smart contract of the RMRK Reclaimable child module.

Methods

reclaimChild

function reclaimChild(uint256 tokenId, address childAddress, uint256 childId) external nonpayable

Used to reclaim an abandoned child token.

Child token was abandoned by transferring it with to as the 0x0 address.This function will set the child's owner to the rootOwner of the caller, allowing the rootOwner management permissions for the child.Requirements: - tokenId must exist

Parameters

NameTypeDescription
tokenIduint256ID of the last parent token of the child token being recovered
childAddressaddressAddress of the child token's smart contract
childIduint256ID of the child token being reclaimed

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