82trust / 100

Biomarker Longevity

by bio.halowerk.com in Onchain & crypto

x402 APIPassing, checked 3 h ago

Standardizes each supplied value against its supplied mean and standard deviation, flips markers whose favorable direction is lower, and computes a weighted composite mapped to a bounded 0–100 index. The references and weights come entirely from the caller; this is not a validated longevity score, diagnosis, prognosis or medical advice.

POST https://bio.halowerk.com/v1/biomarker-longevity

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
106 ms typical, 106 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://bio.halowerk.com/v1/biomarker-longevity" \
  -H "content-type: application/json" \
  -d '{"biomarkers":[{"favorable_direction":"higher","name":"marker-a","reference_mean":55,"reference_sd":10,"value":62,"weight":1},{"favorable_direction":"lower","name":"marker-b","reference_mean":5.4,"reference_sd":0.8,"value":4.8,"weight":1.5},{"favorable_direction":"lower","name":"marker-c","reference_mean":120,"reference_sd":12,"value":118,"weight":0.5}]}'
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.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fbio.halowerk.com%2Fv1%2Fbiomarker-longevity
const res = await pay("https://bio.halowerk.com/v1/biomarker-longevity", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"biomarkers":[{"favorable_direction":"higher","name":"marker-a","reference_mean":55,"reference_sd":10,"value":62,"weight":1},{"favorable_direction":"lower","name":"marker-b","reference_mean":5.4,"reference_sd":0.8,"value":4.8,"weight":1.5},{"favorable_direction":"lower","name":"marker-c","reference_mean":120,"reference_sd":12,"value":118,"weight":0.5}]}),
});
console.log(await res.json());

Example input

{
  "biomarkers": [
    {
      "favorable_direction": "higher",
      "name": "marker-a",
      "reference_mean": 55,
      "reference_sd": 10,
      "value": 62,
      "weight": 1
    },
    {
      "favorable_direction": "lower",
      "name": "marker-b",
      "reference_mean": 5.4,
      "reference_sd": 0.8,
      "value": 4.8,
      "weight": 1.5
    },
    {
      "favorable_direction": "lower",
      "name": "marker-c",
      "reference_mean": 120,
      "reference_sd": 12,
      "value": 118,
      "weight": 0.5
    }
  ]
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
3 h agoPassed402106 ms$0.003
8 h agoPassed402215 ms$0.003