IERC1155URIFacet
IERC1155URIFacet
Version 2 of the token URI implementation. This implementation combines various strategies and lets the user select the most appropriate one. Mode 99 forces the defaultURI. This could be used for pre reveal images. Mode 0 stores individual tokenID segments per tokenID, which are combined with the mode0BaseTokenURI
to create the final tokenURI. Mode 1 uses the baseURI and an index, but is overriden if there is a tokenURI set. Mode 2 uses the ROJI metadata generator, but is overriden if there is a tokenURI set.
uri
function uri(uint256 tokenId) external view returns (string)
Returns the Uniform Resource Identifier (URI) for tokenId
token.
Parameters
Name
Type
Description
tokenId
uint256
uint256 ID of the token to query.
Return Values
Name
Type
Description
[0]
string
string URI of given token.
Was this helpful?