Documentation
    Preparing search index...

    Interface RelayPoolOutboxRouterOptions

    Options for the relay-pool-backed outbox router.

    interface RelayPoolOutboxRouterOptions {
        defaultTimeoutMs?: number;
        fallbackRelays: string[];
        maxRelayOrigins?: number | (() => number);
        relayPool: OutboxRelayPool;
        getSignerPubkey?(): string | Promise<string>;
        isRelayAllowed?(url: string): boolean;
        loadRelayLists(
            pubkeys: string[],
        ): Map<string, RelayListEntry> | Promise<Map<string, RelayListEntry>>;
        signEvent?(template: EventTemplate): Promise<NostrEvent>;
        verifyEvent?(event: NostrEvent): boolean | Promise<boolean>;
    }
    Index

    Properties

    defaultTimeoutMs?: number

    Default bounded-query and initial-discovery timeout in milliseconds.

    fallbackRelays: string[]

    Relays used when hints and NIP-65 data are unavailable.

    maxRelayOrigins?: number | (() => number)

    Distinct relay origins one read plan may name, or a getter read per plan. Default OUTBOX_RELAY_ORIGIN_BUDGET (127); set it to the host's Firewall maxRequirements less one so coverage selection uses the whole budget.

    relayPool: OutboxRelayPool

    Relay pool the router subscribes and publishes through.

    Methods