MetadataRenderer
Last updated
Last updated
A shared on-chain metadata renderer adhering to the which stores and renders metadata as base64 encoded URLs.
To begin we'll import the DecentSDK, chain configurations, and the MetadataRenderer module.
Then we'll setup our signer (via wagmi/ethers) and create a new instance of the DecentSDK.
Get an ethers contract instance of the MetadataRenderer contract.
Get an ethers contract instance of the MetadataRenderer contract.
sdk (SDK) An instance of the DecentSDK, configured with a chain and signer.
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.
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.
Initialized or updates the edition data for a specific target contract.
Returns the base64 encoded metadata for a specific target contract.