kernl API
    Preparing search index...

    Function fetchManifestEvent

    • Fetch the manifest event a pointer names.

      The relays the address names and the apps tier are asked first. When they do not produce the manifest, whether because they do not hold it or because none of them answered, the super tier is asked before giving up: a manifest is an ordinary event, authors publish it to general relays too, and an address that opens elsewhere should not fail here because one catalogue relay had a bad minute. For addresses, the newest event wins, since a named applet is an addressable event that its author replaces on every release. A relay that is down, silent or hangs up does not fail the lookup while another one answers, a round whose relays all refused at once is asked a second time, and hints that are not relay URLs are ignored.

      Parameters

      Returns Promise<NostrEvent>

      The manifest event, unverified.

      unavailable:manifest when a relay answered and none had it, or there was no relay to ask; unavailable:network when no relay answered.

      const event = await fetchManifestEvent(pool, tiers, decodePointer('naddr1…'));