Freee Docs
  • Guide
  • Getting Started
    • How do I connect my wallet to Freee?
    • How do I mint on Freee?
    • Gas Fees
  • Freee Create
    • What can I create on Freee?
    • Single-Edition (ERC-721)
      • How to create a Edition
      • Managing your Edition (ERC-721)
    • Drop (ERC-721)
      • How to create a Drop (ERC-721)
      • How to set up the artwork folder for your Drops collection
      • How to set up the .csv file in your Drops collection
      • Managing your Drop (ERC-721)
    • Collection (ERC-721)
      • How to create a collection (ERC721)
      • How to upload collection artworks?
      • Managing your Collection (ERC721)
        • Manage Sale Stages
        • Manage Pre-reveal & Reveal
        • General Settings
      • Others
        • In depth outline of collection artworks folder
        • In-depth Outline of collection metadata CSV
    • Multi-Edition (ERC-1155)
      • How to Create a Multi-Edition
      • Managing your Collection (Onchain)
    • More Features
      • How can I create an Airdrop?
      • How can I create an Allowlist?
      • Receive blast rewards
    • Create FAQs
      • Can I connect a multi-sig wallet?
      • How do I use a split contract with my collection?
      • How do I withdraw my earnings?
      • Do I have to pay a fee to collect my earnings?
      • Can I add a custom payout address to my collection?
  • Smart Contracts
    • Deployed Contract Addresses
      • Mainnets
      • Testnets
    • Smart Contracts Event-based Overview
    • 1155 Contracts
      • Creating a Contract
      • Creating a Token
      • Selling a Token
      • Minting Tokens
      • Permissions
    • 721 Contracts
      • NFT Creator Factory
      • NFT Implementation
      • Edition Metadata Renderer
      • Drop Metadata Renderer
      • Collection Metadata Renderer
  • Freee Platform Fees
  • Create, share, and collect to earn
    • Understanding Rewards on Freee
    • How to create to earn
    • How to share to earn
    • How to collect to earn
    • Diamond Rewards Chart
  • Freee FAQs
    • Why can't I mint from a collection ?
    • Why can't I see my minted NFT(s) ?
    • Why did my mint transaction fail ?
  • Legal
    • Privacy Policy
    • Terms of Service
Powered by GitBook
On this page
  • updateMetadataBase
  • updateMetadataBaseWithDetails
  • updateProvenanceHash
  1. Smart Contracts
  2. 721 Contracts

Collection Metadata Renderer

Metadata rendering contract for NFTs with individual media assets (Collection).

PreviousDrop Metadata RendererNextFreee Platform Fees

Last updated 7 months ago

This contract is in charge of managing and rendering the metadata for collection on Freee.

A collection NFTs have unique individual media assets.

Whenever a tokenURI is called on an NFT contract it is forwarded to this contract to get metadata for a specific NFT.

View the list of deployed contract addresses .

  • baseURI: A common base path that all the assets share and can append the tokenId to the end to get the metadata for an NFT.

  • contractURI: A resource for getting metadata for the contract. Follows the contract-level metadata format described .

  • provenanceHash: A hash that is used to prove that the order of the images and metadata was set pre-mint, and was not manipulated.

  • target: The address of the NFT contract to get data for.

updateMetadataBase

Updates the baseURI and contractURI.

function updateMetadataBase(
    address target,
    string memory baseUri,
    string memory newContractUri
)

updateMetadataBaseWithDetails

Updates the metadata base URI, extension, contract URI and freezing details.

function updateMetadataBaseWithDetails(
    address target,
    string memory metadataBase,
    string memory metadataExtension,
    string memory newContractURI,
    uint256 freezeAt
)

updateProvenanceHash

Updates the provenance hash stored in the contract.

function updateProvenanceHash(address target, bytes32 provenanceHash)
here
here