Constructors

Properties

#miner?: PowMiner
#pow?: number
#pubKey: string
#signer: EventSigner

Accessors

  • get pubKey(): string
  • Returns string

Methods

  • Parameters

    • data: object
    • id: string

    Returns Promise<NostrEvent>

  • Build a categorized bookmarks event with a given label

    Parameters

    Returns Promise<NostrEvent>

  • Parameters

    • tags: [string, string][]

    Returns Promise<NostrEvent>

  • Create an unsigned gossip message

    Parameters

    • kind: EventKind
    • content: string
    • fnHook: EventBuilderHook

    Returns NotSignedNostrEvent

  • Parameters

    Returns Promise<string>

  • Generic decryption using NIP-23 payload scheme

    Parameters

    • content: string
    • from: string

    Returns Promise<string>

  • Delete an event (NIP-09)

    Parameters

    • id: string

    Returns Promise<NostrEvent>

  • Parameters

    • fnHook: EventBuilderHook

    Returns Promise<NostrEvent>

  • NIP-59 Gift Wrap event with ephemeral key

    Parameters

    • inner: NostrEvent
    • Optional explicitP: string
    • Optional powTarget: number
    • Optional powMiner: PowMiner

    Returns Promise<NostrEvent>

  • Build a mute list event using lists of pubkeys

    Parameters

    • pub: string[]

      Public mute list

    • priv: string[]

      Private mute list

    Returns Promise<NostrEvent>

  • Parameters

    • challenge: string
    • relay: string

    Returns Promise<NostrEvent>

  • Parameters

    • content: string
    • otherKey: string

    Returns Promise<string>

  • Parameters

    • content: string
    • otherKey: string

    Returns Promise<string>

  • Create a basic text note

    Parameters

    • msg: string
    • Optional fnExtra: EventBuilderHook

    Returns Promise<NostrEvent>

  • Build a pin list event using lists of event links

    Parameters

    Returns Promise<NostrEvent>

  • Create a copy of this publisher with PoW

    Parameters

    Returns EventPublisher

  • Parameters

    Returns Promise<NostrEvent>

  • Reply to a note

    Parameters

    Returns Promise<NostrEvent>

  • Repost a note (NIP-18)

    Parameters

    Returns Promise<NostrEvent>

  • Parameters

    • content: string
    • to: string

    Returns Promise<NostrEvent>

  • Parameters

    • t: string

    Returns boolean

  • Unseal rumor

    Parameters

    Returns Promise<NostrEvent>

  • Create a zap request event for a given target event/profile

    Parameters

    • amount: number

      Millisats amout!

    • author: string

      Author pubkey to tag in the zap

    • relays: string[]
    • Optional note: NostrLink

      Note Id to tag in the zap

    • Optional msg: string

      Custom message to be included in the zap

    • Optional fnExtra: EventBuilderHook

    Returns Promise<NostrEvent>

  • Create a NIP-07 EventPublisher

    Returns Promise<undefined | EventPublisher>

  • Create an EventPublisher for a private key

    Parameters

    • privateKey: string

    Returns EventPublisher

Generated using TypeDoc