Files
realy/nwc/list_transactions.go
mleku 84c29a156d fixed all tests to pass
also pushed up the current state of the new NWC library and JSON parsing helpers
2024-11-28 10:36:35 +00:00

22 lines
489 B
Go

package nwc
type ListTransactionsRequest struct {
Request
ListTransactions
}
func NewListTransactionsRequest(req ListTransactions) *ListTransactionsRequest {
return &ListTransactionsRequest{
Request{Methods.ListTransactions}, req,
}
}
type ListTransactionsResponse struct {
Response
Transactions []LookupInvoice
}
func NewListTransactionsResponse(txs []LookupInvoice) ListTransactionsResponse {
return ListTransactionsResponse{Response{Type: Methods.ListTransactions}, txs}
}