MetadataRenderer
A shared on-chain metadata renderer adhering to the music metadata standard which stores and renders metadata as base64 encoded URLs.
Getting Started Module Methods Smart Contract Methods
Getting Started
To begin we'll import the FrostySDK, chain configurations, and the MetadataRenderer module.
Then we'll setup our signer (via wagmi/ethers) and create a new instance of the FrostySDK.
Module Methods
getContract Get an ethers contract instance of the MetadataRenderer contract.
getContract
Get an ethers contract instance of the MetadataRenderer contract.
sdk (SDK) An instance of the FrostySDK, configured with a chain and signer.
Smart Contract Methods
bulkUpdate Initialized or updates the edition data for a specific target contract.
tokenURITarget Returns the base64 encoded metadata for a specific target contract.
bulkUpdate
Returns the balance of the ERC20 token held by the vault.
target (address) The address of the NFT collection for which to initialize or update metadata.
_songMetadata (SongMetadata) A struct containing the song metadata.
_projectMetadata (ProjectMetadata) A struct containing the project metadata.
_tags (string[]) An array of tags.
_credits (Credit[]) An array of structs containing credits.
tokenURITarget
Returns the base64 encoded metadata for a specific target contract.
tokenId (uint256) The id of the token to retrieve metadata for.
target (address) The address of the NFT collection to retrieve metadata for.
Last updated