Applesauce
    Preparing search index...

    A class representing a Nostr user

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    cache: Map<string, Casts.User>

    A global cache of pubkey -> User

    Accessors

    • get nprofile(): `nprofile1${string}`

      Returns the NIP-19 nprofile for this user

      Returns `nprofile1${string}`

    • get npub(): `npub1${string}`

      Returns the NIP-19 npub for this user

      Returns `npub1${string}`

    • get pubkey(): string

      The hex pubkey represented by this cast

      Returns string

    Methods

    • Creates an observable of a timeline of events created by this user

      Parameters

      • input: number | number[] | Omit<Filter, "authors"> | Omit<Filter, "authors">[]

        The filter(s) for the timeline or kind(s)

      Returns Observable<NostrEvent[]>

      A timeline observable of events by the user rom the event store

    • Creates an observable of a timeline of events created by this user

      Type Parameters

      Parameters

      • input: number | number[] | Omit<Filter, "authors"> | Omit<Filter, "authors">[]

        The filter(s) for the timeline or kind(s)

      • Optionalcast: Casts.CastConstructor<T>

      Returns Observable<T[]>

      A timeline observable of events by the user rom the event store