GroupMetadata
On-chain NFT metadata stored as base64 JSON
The getMetadata
function is used to return the metadata of a group NFT for a given tokenURI. This metadata is returned as a base64 encoded JSON string and includes information about the group, such as the group's name, address, details, and URI, as well as some SVG image data. This function is useful for getting a compact representation of all the key information about a group NFT, which can be used for various purposes such as displaying the NFT in a wallet or marketplace.
Table of Contents
Public Functions
getMetadata
Returns the metadata of a group NFT for a tokenURI.
Level 2 Heading: getMetadata
_tokenID
uint256
Group ID of a token to get metadata for
Return Variables:
string
string memory
The metadata of a token in JSON format base64 encoded
Usage with ethers.js
Last updated