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.
// Import SDK, chain configurations, and the MetadataRenderer module
import { FrostySDK, chain, metadataRenderer } from "frosty-sdk";
// Get the signer via wagmi or configure using ethers
// Setup the SDK with the desired chain and signer
const sdk = new FrostySDK(chain.goerli, signer);
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.