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-convertEingaben
| Feld | Typ | Pflicht | Beschreibung |
|---|---|---|---|
| input | string | Ja | npub, note, nprofile, nevent, naddr, or 64 hex characters. |
| assume | string | Nein | How to read bare hex. Ignored for bech32 input, which is unambiguous. |
| relays | array | Nein | wss relay hints to embed in the generated nprofile, nevent or naddr. |
| author | string | Nein | Author public key as hex or npub, for building an nevent or naddr. |
| kind | integer | Nein | Event kind for the generated nevent or naddr. |
| identifier | string | Nein | The 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."
}
}
}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
- Nostrwerk0,004 USDC
bot score
POSThttps://nostr.halowerk.com/bot-scoreFetches the recent notes of one public key across several relays and measures six independent signals: posting rate per day, the coefficient of variation of the intervals between posts, how many of those intervals sit within a few seconds o
- Nostrwerk0,001 USDC
event sign
POSThttps://nostr.halowerk.com/event-signThree 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
- Nostrwerk0,004 USDC
follower graph
POSThttps://nostr.halowerk.com/follower-graphFetches kind 3 contact lists over up to twelve relays. Because kind 3 is replaceable, several relays regularly hold different versions; only the one with the highest created_at is used and the answer states which relays carried that version