ACINQ / phoenixd

https://phoenix.acinq.co/server
Apache License 2.0
117 stars 15 forks source link

Add endpoints to list incoming and outgoing payments #53

Closed dpad85 closed 6 months ago

dpad85 commented 6 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.