Class NDKZap

Hierarchy

  • EventEmitter
    • NDKZap

Constructors

Properties

ndk: default
zappedEvent?: NDKEvent
zappedUser: NDKUser

Methods

  • Generates a kind:9734 zap request and returns the payment request

    Parameters

    • amount: number

      amount to zap in millisatoshis

    • Optional comment: string

      optional comment to include in the zap request

    • Optional extraTags: NDKTag[]

      optional extra tags to include in the zap request

    • Optional relays: string[]

      optional relays to ask zapper to publish the zap to

    • Optional signer: NDKSigner

    Returns Promise<null | string>

    the payment request

  • Parameters

    • amount: number
    • Optional comment: string
    • Optional extraTags: NDKTag[]
    • Optional relays: string[]
    • Optional signer: NDKSigner

    Returns Promise<null | {
        event: NDKEvent;
        zapEndpoint: string;
    }>

  • Parameters

    • event: NDKEvent
    • amount: number
    • zapEndpoint: string

    Returns Promise<null | string>

  • Returns Promise<undefined | string>

Generated using TypeDoc