Skip to main content

IFlowNFTDescriptor

Git Source

This contract generates the URI describing the Sablier Flow stream NFTs.

Functions

tokenURI

Produces the URI describing a particular stream NFT.

Currently it returns the Sablier logo as an SVG. In the future, it will return an NFT SVG.

function tokenURI(IERC721Metadata sablierFlow, uint256 streamId) external view returns (string memory uri);

Parameters

NameTypeDescription
sablierFlowIERC721MetadataThe address of the Sablier Flow the stream was created in.
streamIduint256The ID of the stream for which to produce a description.

Returns

NameTypeDescription
uristringThe URI of the ERC721-compliant metadata.