mirror of
https://github.com/ChuckNorrison/LightningTipBot.git
synced 2026-08-13 12:33:14 +02:00
27 lines
717 B
Go
27 lines
717 B
Go
package api
|
|
|
|
type BalanceResponse struct {
|
|
Balance int64 `json:"balance"`
|
|
}
|
|
|
|
type InvoiceStatusResponse struct {
|
|
State string `json:"state,omitempty"`
|
|
PaymentHash string `json:"payment_hash"`
|
|
Preimage int64 `json:"preimage"`
|
|
}
|
|
|
|
type CreateInvoiceResponse struct {
|
|
PaymentHash string `json:"payment_hash"`
|
|
PayRequest string `json:"pay_request"`
|
|
Preimage string `json:"preimage,omitempty"`
|
|
}
|
|
type CreateInvoiceRequest struct {
|
|
Memo string `json:"memo"`
|
|
Amount int64 `json:"amount"`
|
|
DescriptionHash string `json:"description_hash"`
|
|
UnhashedDescription string `json:"unhashed_description"`
|
|
}
|
|
|
|
type PayInvoiceRequest struct {
|
|
PayRequest string `json:"pay_req"`
|
|
}
|