Skip to content
Fourohtwo

Every relay is measured twice over

nostr.halowerk.com/relay-health

Every relay is measured twice over. Over WebSocket a genuine REQ query is sent and the connection time, the time to end of stored events and the number of events returned are recorded — a relay that accepts the connection and then stays silent is the failure mode a reachability ping cannot see.

BaseAnswering
POSThttps://nostr.halowerk.com/relay-health

Uptime100% of 2 checks 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://nostr.halowerk.com/relay-health", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"relays":["wss://nos.lol","wss://relay.primal.net"],"timeout_ms":4000}),
});
console.log(await res.json());

Example input

{
  "relays": [
    "wss://nos.lol",
    "wss://relay.primal.net"
  ],
  "timeout_ms": 4000
}