2025-12-22 09:48:57 +01:00

20 lines
457 B
TypeScript

export interface AlbyInvoice {
invoice: string // Lightning invoice (bolt11)
paymentHash: string
amount: number // Amount in satoshis
expiresAt: number // Unix timestamp
}
export interface AlbyPaymentStatus {
paid: boolean
paymentHash?: string
amount?: number
confirmedAt?: number
}
export interface AlbyInvoiceRequest {
amount: number // Amount in satoshis
description?: string
expiry?: number // Expiry in seconds (default 3600)
}