UNPKG

@getalby/lightning-tools

Version:

Collection of helpful building blocks and tools to develop Bitcoin Lightning web apps

20 lines (19 loc) 585 B
import { InvoiceArgs, SuccessAction } from "./types"; export declare class Invoice { paymentRequest: string; paymentHash: string; preimage: string | null; verify: string | null; satoshi: number; expiry: number | undefined; timestamp: number; createdDate: Date; expiryDate: Date | undefined; description: string | null; successAction: SuccessAction | null; constructor(args: InvoiceArgs); isPaid(): Promise<boolean>; validatePreimage(preimage: string): boolean; verifyPayment(): Promise<boolean>; hasExpired(): boolean; }