Skip to content

Fetching IPFS Metadata const tokenURI = await agencyBudgetDPA.tokenURI(tokenId); // Returns: "https://emerald-certain-muskox-778.mypinata.cloud/ipfs/Qm..." const response = await fetch(tokenURI); const metadata = await response.json(); console.log(metadata); /* { "name": "Department of Agriculture - Bureau of Fisheries - Personnel Services", "description": "Personnel Services for Department of Agriculture amounting to ₱1,234,567,890", "image": "https://emerald-certain-muskox-778.mypinata.cloud/ipfs/Qm...", "attributes": [ { "trait_type": "Type", "value": "Departmental Budget" }, { "trait_type": "Department Code", "value": "01" }, { "trait_type": "Amount", "value": 1234567890 }, ... #2327

Description

@cindylhiam01-jpg

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions