ACINQ / phoenixd

https://phoenix.acinq.co/server
Apache License 2.0
100 stars 14 forks source link

Add endpoints to list incoming and outgoing payments #53

Closed dpad85 closed 4 months ago

dpad85 commented 4 months ago

This PR adds one API endpoint (GET /payments/outgoing) that returns a list of outgoing payments. Timestamps can be provided to filter the list on creation/completion date, as well as paging parameters. By default, only payments that have been successfully sent or are still pending are returned, but there's an optional parameter to get all payments regardless of status.

The existing GET /payments/incoming has been updated to accept the same timestamps and paging parameters as the new outgoing payments endpoint. Similarly, this command will by default only return payments that have been successfully received.