82trust / 100

Flood Risk Asset

by prop.halowerk.com in Security & trust

x402 APIPassing, checked 3 h ago

Multiplies each mutually exclusive supplied scenario probability by its supplied damage fraction and asset replacement value, then sums expected loss. It does not obtain hazard maps, model hydrology, validate damage curves, price insurance or predict a particular event.

POST https://prop.halowerk.com/v1/flood-risk-asset

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
103 ms typical, 103 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/flood-risk-asset" \
  -H "content-type: application/json" \
  -d '{"asset_replacement_value":2800000,"scenarios":[{"annual_probability":0.1,"inundation_depth_m":0.2,"scenario_id":"frequent-shallow","supplied_damage_fraction":0.03},{"annual_probability":0.01,"inundation_depth_m":1.4,"scenario_id":"rare-deep","supplied_damage_fraction":0.38}]}'
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%2Fflood-risk-asset
const res = await pay("https://prop.halowerk.com/v1/flood-risk-asset", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"asset_replacement_value":2800000,"scenarios":[{"annual_probability":0.1,"inundation_depth_m":0.2,"scenario_id":"frequent-shallow","supplied_damage_fraction":0.03},{"annual_probability":0.01,"inundation_depth_m":1.4,"scenario_id":"rare-deep","supplied_damage_fraction":0.38}]}),
});
console.log(await res.json());

Example input

{
  "asset_replacement_value": 2800000,
  "scenarios": [
    {
      "annual_probability": 0.1,
      "inundation_depth_m": 0.2,
      "scenario_id": "frequent-shallow",
      "supplied_damage_fraction": 0.03
    },
    {
      "annual_probability": 0.01,
      "inundation_depth_m": 1.4,
      "scenario_id": "rare-deep",
      "supplied_damage_fraction": 0.38
    }
  ]
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
3 h agoPassed402103 ms$0.004