Type Alias NDKZapDetails<T>

NDKZapDetails<T>: T & {
    amount: number;
    comment?: string;
    recipientPubkey: string;
    tags?: NDKTag[];
    target: NDKEvent | NDKUser;
    unit: string;
}

Type Parameters

  • T

Type declaration

  • amount: number

    Amount of the payment

  • Optionalcomment?: string

    Comment for the zap

  • recipientPubkey: string

    Pubkey of the user to zap to

  • Optionaltags?: NDKTag[]

    Tags to add to the zap

  • target: NDKEvent | NDKUser

    Target of the zap

  • unit: string

    Unit of the payment (e.g. msat)