Skip to content
Fourohtwo

kette.halowerk.com/v1/bitcoin-ledger-median-time-admission

Bitcoin median-time check compares a candidate header timestamp to the median of up to eleven preceding header times. Use it when an agent needs checking the strict median-time-past rule.

BaseAnswering
POSThttps://kette.halowerk.com/v1/bitcoin-ledger-median-time-admission

Uptime100% of 1 check in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://kette.halowerk.com/v1/bitcoin-ledger-median-time-admission", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"header":"0100000000000000000000000000000000000000000000000000000000000000000000003ba3edfd7a7b12b27ac72c3e67768f617fc81bc3888a51323a9fb8aa4b1e5e4adae5494dffff001d1aa4ae18","prior_times":[1296688362,1296688512,1296688572]}),
});
console.log(await res.json());

Example input

{
  "header": "0100000000000000000000000000000000000000000000000000000000000000000000003ba3edfd7a7b12b27ac72c3e67768f617fc81bc3888a51323a9fb8aa4b1e5e4adae5494dffff001d1aa4ae18",
  "prior_times": [
    1296688362,
    1296688512,
    1296688572
  ]
}

More from HALOWERK kettenwerkProvider status