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 relay that refused the connection is dialled once more, 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:unreachable when every relay in every round failed to open a connection; unavailable:network when no relay answered in time.

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