Zum Inhalt
HALOWERK

Nostrwerk

key convert

Takes any public NIP-19 identifier or a 64-character hex value and returns every representation it can be expressed as. A decoded nprofile or nevent yields not only the key or event id but also the relay hints, the author and the kind that the TLV form carries — precisely the fields that make a follow-up query targeted, and precisely what is lost by code that only handles npub.

POST https://nostr.halowerk.com/key-convert

Eingaben

Felder des veröffentlichten Eingabeschemas
FeldTypPflichtBeschreibung
inputstringJanpub, note, nprofile, nevent, naddr, or 64 hex characters.
assumestringNeinHow to read bare hex. Ignored for bech32 input, which is unambiguous.
relaysarrayNeinwss relay hints to embed in the generated nprofile, nevent or naddr.
authorstringNeinAuthor public key as hex or npub, for building an nevent or naddr.
kindintegerNeinEvent kind for the generated nevent or naddr.
identifierstringNeinThe d tag value for building an naddr. Requires author and kind.
Vollständiges Eingabeschema anzeigen
{
  "type": "object",
  "required": [
    "input"
  ],
  "additionalProperties": false,
  "properties": {
    "input": {
      "type": "string",
      "description": "npub, note, nprofile, nevent, naddr, or 64 hex characters."
    },
    "assume": {
      "type": "string",
      "enum": [
        "pubkey",
        "event_id",
        "both"
      ],
      "default": "both",
      "description": "How to read bare hex. Ignored for bech32 input, which is unambiguous."
    },
    "relays": {
      "type": "array",
      "maxItems": 8,
      "items": {
        "type": "string"
      },
      "description": "wss relay hints to embed in the generated nprofile, nevent or naddr."
    },
    "author": {
      "type": "string",
      "description": "Author public key as hex or npub, for building an nevent or naddr."
    },
    "kind": {
      "type": "integer",
      "minimum": 0,
      "maximum": 65535,
      "description": "Event kind for the generated nevent or naddr."
    },
    "identifier": {
      "type": "string",
      "maxLength": 200,
      "description": "The d tag value for building an naddr. Requires author and kind."
    }
  }
}

Originalschema öffnen

Veröffentlichtes Eingabebeispiel

{
  "input": "beispiel",
  "assume": "both"
}

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 →