Fetch All Streams

POST /api/ceramic/fetch-all-streams

This endpoint retrieves all available stream data from the Ceramic network. It accepts a GET request and returns a list of all streams, including their states, metadata, and any other relevant information.

The endpoint is intended for scenarios where a comprehensive overview of all streams in the network is required, allowing developers to fetch and display multiple streams' data simultaneously.

Headers

Name
Value

Content-Type

application/json

Authorization

Bearer <token>

Body

No request body is needed for this endpoint

Response

Successfully retrieved all stream data from Ceramic.

{
  "success": true,
  "data": [
    {
      "state": {
        "type": 3,
        "content": {
          "type": "1",
          "evpId": "b5bd5e25-7d18-4138-83ee-353b72fb9343",
          "createdAt": "2022-04-01T08:31:00.000Z",
          "evpReportDB": {
            "type": "1",
            "userId": "",
            "createdAt": "2022-04-01T08:31:00.000Z",
            "updatedAt": "2022-04-30T08:31:00.000Z",
            "submittedAt": null,
            "auditStatus": 3,
            "locationInformation": {
              "addressConfirmed": true,
              "createdAt": "2024-08-29T23:33:51.593Z",
              "entityCompany": "",
              "providerCity": "",
              "providerCountry": "",
              "providerLocation": "N/A",
              "providerState": "",
              "providerZipcode": "",
              "isHistoricData": true,
              "updatedAt": "2024-08-29T23:33:51.593Z",
              "status": 8
            },
            "hardwareConfiguration": {
              "hardware": {
                "hardwareType": "N/A",
                "description": "N/A",
                "supportingFile": [],
                "hardwareDetails": "N/A"
              },
              "status": 8,
              "createdAt": "2024-08-29T23:33:51.593Z",
              "updatedAt": "2024-08-29T23:33:51.593Z",
              "isHistoricData": true
            },
            "waterConsumption": {
              "isHistoricData": true,
              "createdAt": "2022-04-01T08:31:00.000Z",
              "updatedAt": "2022-04-30T08:31:00.000Z",
              "startDate": "2022-04-01T08:31:00.000Z",
              "endDate": "2022-04-30T08:31:00.000Z",
              "reference": "N/A",
              "waterUsage": false,
              "waterConsumed": 0,
              "waterCompany": "N/A",
              "waterBillFiles": [],
              "status": 8
            },
            "electricityConsumption": {
              "actualElectricityConsumed": "66106",
              "actualElectricityDelivered": "66106",
              "actualElectricityReturned": "0",
              "annualElectricityUsage": "293528000",
              "electricityBillFiles": [],
              "electricityCompany": "N/A",
              "electricityNotPoweringInfrastructure": "66106",
              "endDate": "2022-04-30T08:31:00.000Z",
              "estimationMethodology": "",
              "isHistoricData": true,
              "reference": "N/A",
              "startDate": "2022-04-01T08:31:00.000Z",
              "status": 8,
              "totalElectricityUsedForNodeOperations": 0
            },
            "energyProduction": {
              "createdAt": "2024-08-29T23:48:49.440Z",
              "frequencyOfMeasurement": "",
              "electricityPurchased": 0,
              "isHistoricData": true,
              "inspectionDate": "N/A",
              "inspectionFiles": [],
              "installationDate": "N/A",
              "methodOfMeasurement": "",
              "numberOfSolarPanels": 0,
              "purchaseFiles": [],
              "renewableEnergyUsage": true,
              "solarPanelBrand": "N/A",
              "solarPanelModalNumber": "N/A",
              "solarWattPeak": "0",
              "status": 8,
              "totalElectricityControlled": 0,
              "updatedAt": "2024-08-29T23:48:49.440Z",
              "renewableElectricityPurchased": 66106,
              "renewableElectricityPurchasedDocs": "N/A",
              "renewableElectricityPurchasedSource": "N/A",
              "networkRenewableEnergyPurchases": 81718000
            },
            "renewableEnergyProcurement": {
              "status": 8,
              "endDate": "2022-04-30T08:31:00.000Z",
              "createdAt": "2024-08-29T23:48:49.440Z",
              "startDate": "2022-04-01T08:31:00.000Z",
              "updatedAt": "2024-08-29T23:48:49.440Z",
              "energyUsage": true,
              "documentFiles": [],
              "isHistoricData": true,
              "supportingFiles": [],
              "renewableEnergyType": "",
              "actualElectricityReturned": 0,
              "actualElectricityDelivered": 0,
              "networkRenewableEnergyPurchases": 81718000
            },
            "preliminaryResultsRecMatching": {
              "status": 8,
              "endDate": "2022-04-30T08:31:00.000Z",
              "createdAt": "2024-08-29T23:48:49.440Z",
              "startDate": "2022-04-01T08:31:00.000Z",
              "updatedAt": "2024-08-29T23:48:49.440Z",
              "timePeriod": "N/A",
              "supportingFile": null,
              "totalEmissions": 0,
              "emissionsFactor": 436,
              "isHistoricData": true,
              "actualElectricityConsumed": 66106,
              "actualElectricityReturned": null,
              "actualElectricityDelivered": 66106
            },
            "auditReview": {
              "reviewStatus": 7,
              "providerEvpStatus": 7,
              "auditorEvpSubmissionDate": "2024-08-29T23:33:51.593Z",
              "providerEvpSubmissionDate": "",
              "reportOption": 1
            },
            "greenscoreId": "",
            "reportStartDate": "2022-04-01T08:31:00.000Z",
            "reportEndDate": "2022-04-30T08:31:00.000Z",
            "providerNetworkType": 1,
            "minerIds": [
              "f066596",
              "f0678914",
              "f01652333",
              "f01662356",
              "f01702940",
              "f01732188",
              "f01732189",
              "f01755793",
              "f01756173",
              "f01760317",
              "f01796026",
              "f01814972",
              "f01814973",
              "f01823202",
              "f01823934"
            ],
            "entityCompany": "Not Provided"
          }
        },
        "metadata": {
          "controllers": [
            "did:pkh:eip155:1:0x00e72cbcdf365395f23ced4404c96a58d27ced0f"
          ],
          "model": {
            "_type": 2,
            "_cid": {
              "/": "bagcqcerafpt4lwb5akrxioxsnp52q6yn7wjpcf6tavf5pfx4aum54nbesoha"
            }
          }
        },
        "signature": 2,
        "anchorStatus": 1,
        "log": [
          {
            "cid": {
              "/": "bagcqceracdrz4a6aj3c6atwoqzlh4rb2qmub55z4lcouw3ampwhuhmlqkqwq"
            },
            "type": 0,
            "expirationTime": 1727190796
          }
        ]
      },
      "streamId": "kjzl6kcym7w8y5axqkk8ovoigpp7g7a9kh65q008kg8eiy76ulihoxqn5myjdbh"
    },
    {
      // Additional streams...
    }
  ]
}

Last updated