Zum Inhalt
HALOWERK

Nostrwerk

follower graph

Fetches 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 and how many older versions were seen, so a stale relay never quietly overwrites a current list. At depth 1 the answer is the account and its outgoing follows.

POST https://nostr.halowerk.com/follower-graph

Eingaben

Felder des veröffentlichten Eingabeschemas
FeldTypPflichtBeschreibung
pubkeystringJaPublic key as 64 hex characters, npub or nprofile.
depthintegerNein1 returns the account and its follows. 2 also fetches the contact lists of its contacts.
max_contactsintegerNeinUpper bound on contacts reported for the root account.
second_degree_sampleintegerNeinHow many contact lists to fetch at depth 2. Higher values cost time, not money.
relaysarrayNeinwss relay addresses. Left empty, ten measured default relays are used.
Vollständiges Eingabeschema anzeigen
{
  "type": "object",
  "required": [
    "pubkey"
  ],
  "additionalProperties": false,
  "properties": {
    "pubkey": {
      "type": "string",
      "description": "Public key as 64 hex characters, npub or nprofile."
    },
    "depth": {
      "type": "integer",
      "enum": [
        1,
        2
      ],
      "default": 1,
      "description": "1 returns the account and its follows. 2 also fetches the contact lists of its contacts."
    },
    "max_contacts": {
      "type": "integer",
      "minimum": 1,
      "maximum": 500,
      "default": 200,
      "description": "Upper bound on contacts reported for the root account."
    },
    "second_degree_sample": {
      "type": "integer",
      "minimum": 1,
      "maximum": 25,
      "default": 15,
      "description": "How many contact lists to fetch at depth 2. Higher values cost time, not money."
    },
    "relays": {
      "type": "array",
      "maxItems": 12,
      "items": {
        "type": "string"
      },
      "description": "wss relay addresses. Left empty, ten measured default relays are used."
    }
  }
}

Originalschema öffnen

Veröffentlichtes Eingabebeispiel

{
  "pubkey": "3bf0c63fcb93463407af97a5e5ee64fa883d107ef9e558472c4eb9aaaefa459d",
  "depth": 1
}

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 →