Documentation
    Preparing search index...

    Class PajaPointerNotFoundError

    Thrown when every relay that could be asked answered EOSE without the pointer's manifest event. Relays that were down are counted, not reported as the cause: one unreachable relay does not turn a clean miss into a failure.

    try {
    await resolvePajaPointer(pointer);
    } catch (error) {
    if (error instanceof PajaPointerNotFoundError) console.log(error.answered, error.failed.length);
    }

    Hierarchy

    • Error
      • PajaPointerNotFoundError
    Index

    Constructors

    Properties

    answered: number

    Relays that sent EOSE without the event.

    cause?: unknown
    code: "pointer-not-found" = ...

    Stable discriminator for hosts that cannot rely on instanceof across bundles.

    failed: readonly { reason: string; url?: string }[]

    Relays that could not be asked, with their reasons.

    message: string
    name: string
    pointerType: "naddr" | "nevent"

    Pointer type that was looked up.

    relays: readonly string[]

    Relay URLs the lookup queried, in query order.

    stack?: string