Core
Other
Utils
Render Utils

RMRKRenderUtils

RMRK team

RMRKRenderUtils

Smart contract of the RMRK render utils module.

Extra utility functions for RMRK contracts.

Methods

getExtendedNft

function getExtendedNft(uint256 tokenId, address targetCollection) external view returns (struct RMRKRenderUtils.ExtendedNft data)

Used to get extended information about a specified token.

The full ExtendedNft struct looks like this: [ tokenMetadataUri, directOwner, rootOwner, activeAssetCount, pendingAssetCount priorities, maxSupply, totalSupply, issuer, name, symbol, activeChildrenNumber, pendingChildrenNumber, isSoulbound, hasMultiAssetInterface, hasNestingInterface, hasEquippableInterface ]

Parameters

NameTypeDescription
tokenIduint256ID of the token for which to retireve the ExtendedNft struct
targetCollectionaddressAddress of the collection to which the specified token belongs to

Returns

NameTypeDescription
dataRMRKRenderUtils.ExtendedNftThe ExtendedNft struct containing the specified token's data