20 lines
457 B
TypeScript
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)
|
|
}
|