Constructors

  • Parameters

    • relays: string[]
    • options: {
          eoseSubTimeout?: number;
          getTimeout?: number;
      } = {}
      • Optional eoseSubTimeout?: number
      • Optional getTimeout?: number

    Returns NostrClient

Methods

  • Type Parameters

    • K extends number = number

    Parameters

    • filter: Filter<K>
    • Optional opts: SubscriptionOptions

    Returns Promise<null | Event<K>>

  • Type Parameters

    • K extends number = number

    Parameters

    • filters: Filter<K>[]
    • Optional opts: SubscriptionOptions

    Returns Promise<Event<K>[]>

  • Type Parameters

    • K extends number = number

    Parameters

    • filters: Filter<K>[]
    • Optional onEventFn: ((element) => void)
        • (element): void
        • Parameters

          • element: Event

          Returns void

    • Optional opts: SubscriptionOptions

    Returns Sub<K>

Generated using TypeDoc