Zum Inhalt
HALOWERK

Nostrwerk

zap receipt check

Takes a kind 9735 receipt directly or fetches it from relays by event id, then runs eight named checks and reports each one separately with its reason. The receipt signature and the signature of the zap request enclosed in the description tag are verified per BIP-340. The invoice is decoded and its amount is compared against the amount tag of the zap request, since those two can disagree and only the invoice was payable.

POST https://nostr.halowerk.com/zap-receipt-check

Eingaben

Felder des veröffentlichten Eingabeschemas
FeldTypPflichtBeschreibung
receiptobjectNeinThe complete kind 9735 event. Either this or event_id is required.
event_idstringNeinEvent id of the receipt as hex, note or nevent. Fetched from the relays when receipt is not given.
recipient_lightning_addressstringNeinLightning address of the recipient, for example name@domain. Given, the issuer is compared against the nostrPubkey published there.
relaysarrayNeinwss relay addresses used when fetching by event_id.
Vollständiges Eingabeschema anzeigen
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "receipt": {
      "type": "object",
      "description": "The complete kind 9735 event. Either this or event_id is required."
    },
    "event_id": {
      "type": "string",
      "description": "Event id of the receipt as hex, note or nevent. Fetched from the relays when receipt is not given."
    },
    "recipient_lightning_address": {
      "type": "string",
      "description": "Lightning address of the recipient, for example name@domain. Given, the issuer is compared against the nostrPubkey published there."
    },
    "relays": {
      "type": "array",
      "maxItems": 12,
      "items": {
        "type": "string"
      },
      "description": "wss relay addresses used when fetching by event_id."
    }
  }
}

Originalschema öffnen

Veröffentlichtes Eingabebeispiel

{}

Ergebnis & Dokumentation

Maschinenlesbare Dokumentation dieses Hubs

Quelle dieser Seite: der veröffentlichte HALOWERK-Katalog. Stand: 2026-11-01, 15:19 UTC.

Weitere Endpunkte dieses Hubs

Alle Endpunkte dieses Hubs →