zaply/lightning/lightning.go
2024-12-27 02:29:31 +01:00

21 lines
404 B
Go

package lightning
import "time"
type PaymentRequest string
type Lightning interface {
CreateInvoice(msats int64, description string) (PaymentRequest, error)
GetInvoice(paymentHash string) (*Invoice, error)
}
type Invoice struct {
PaymentHash string
Preimage string
Msats int64
Description string
PaymentRequest string
CreatedAt time.Time
ConfirmedAt time.Time
}