Skip to content
Fourohtwo

Three modes over the same event structure

nostr.halowerk.com/event-sign

Three modes over the same event structure. In preimage mode the caller supplies a public key and the event fields; the answer holds the exact NIP-01 serialisation, the SHA-256 event id derived from it and the 32 bytes to sign, so the caller signs locally and no secret key ever crosses the connection.

BaseAnswering
POSThttps://nostr.halowerk.com/event-sign

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://nostr.halowerk.com/event-sign", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"content":"hello nostr","kind":1,"mode":"preimage","pubkey":"3bf0c63fcb93463407af97a5e5ee64fa883d107ef9e558472c4eb9aaaefa459d","tags":[["t","bitcoin"]]}),
});
console.log(await res.json());

Example input

{
  "content": "hello nostr",
  "kind": 1,
  "mode": "preimage",
  "pubkey": "3bf0c63fcb93463407af97a5e5ee64fa883d107ef9e558472c4eb9aaaefa459d",
  "tags": [
    [
      "t",
      "bitcoin"
    ]
  ]
}