82trust / 100

Energy Certificate

by prop.halowerk.com in Documents & files

x402 APIPassing, checked 3 h ago

Subtracts exported energy from supplied site energy, divides by conditioned floor area and selects the first caller-supplied ascending maximum-intensity band. It does not normalize climate or occupancy, convert primary energy, audit meters or issue a legally recognized energy certificate.

POST https://prop.halowerk.com/v1/energy-certificate

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
108 ms typical, 108 ms slowest 5%
Last check
3 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://prop.halowerk.com/v1/energy-certificate" \
  -H "content-type: application/json" \
  -d '{"annual_exported_energy_kwh":18000,"annual_imported_energy_kwh":312000,"conditioned_floor_area_m2":2400,"supplied_bands":[{"label":"A","maximum_kwh_per_m2_year":80},{"label":"B","maximum_kwh_per_m2_year":120},{"label":"C","maximum_kwh_per_m2_year":170},{"label":"D","maximum_kwh_per_m2_year":240}]}'
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.03:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fprop.halowerk.com%2Fv1%2Fenergy-certificate
const res = await pay("https://prop.halowerk.com/v1/energy-certificate", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"annual_exported_energy_kwh":18000,"annual_imported_energy_kwh":312000,"conditioned_floor_area_m2":2400,"supplied_bands":[{"label":"A","maximum_kwh_per_m2_year":80},{"label":"B","maximum_kwh_per_m2_year":120},{"label":"C","maximum_kwh_per_m2_year":170},{"label":"D","maximum_kwh_per_m2_year":240}]}),
});
console.log(await res.json());

Example input

{
  "annual_exported_energy_kwh": 18000,
  "annual_imported_energy_kwh": 312000,
  "conditioned_floor_area_m2": 2400,
  "supplied_bands": [
    {
      "label": "A",
      "maximum_kwh_per_m2_year": 80
    },
    {
      "label": "B",
      "maximum_kwh_per_m2_year": 120
    },
    {
      "label": "C",
      "maximum_kwh_per_m2_year": 170
    },
    {
      "label": "D",
      "maximum_kwh_per_m2_year": 240
    }
  ]
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
3 h agoPassed402108 ms$0.002