Marmot-TS
    Preparing search index...

    Interface NostrNetworkInterface

    Interface for group-specific nostr operations. This is the only network interface used by MarmotGroup. It includes all NostrPool methods plus group-specific operations.

    interface NostrNetworkInterface {
        getUserInboxRelays(pubkey: string): Promise<string[]>;
        publish(
            relays: string[],
            event: NostrEvent,
        ): Promise<Record<string, PublishResponse>>;
        request(
            relays: string[],
            filters: Filter | Filter[],
        ): Promise<NostrEvent[]>;
        subscription(
            relays: string[],
            filters: Filter | Filter[],
        ): Subscribable<NostrEvent>;
    }
    Index

    Client - Nostr

    • Request a user's inbox relays. This method should fetch the relays where a user receives their messages (e.g., from a kind 10051 key package relay list event).

      Parameters

      • pubkey: string

        The public key (hex string) of the user whose inbox relays to load

      Returns Promise<string[]>

      Promise resolving to an array of relay URLs for the user's inbox