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

Open

Activity

  1. cindylhiam01-jpg commented on Jul 30, 2026

    @cindylhiam01-jpg
    Author

    Code Examples
    Integrate using command-line curl or javascript fetches:
    cURL Example
    Copy
    curl -X GET "https://compass-api.dbm.gov.ph/api/v1/records/saaodb?reportYear=2026&period=FY&limit=10"
    -H "X-API-Key: dbm_live_your_actual_key"
    JavaScript (Fetch) Example
    Copy
    fetch('https://compass-api.dbm.gov.ph/api/v1/records/saaodb?reportYear=2026&period=FY&limit=10', {
    headers: {
    'X-API-Key': 'dbm_live_your_actual_key'
    }
    })
    .then(res => res.json())
    .then(data => console.log(data));

  2. cindylhiam01-jpg commented on Jul 30, 2026

    @cindylhiam01-jpg
    Author

    Thru remix here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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