This is a Java wrapper for ACINQ's phoenixd REST API.
- Java 21
- Maven
- A running instance of phoenixd
- A valid Lightning address (for testing. See below)
Currently, only a minimal subset of the endpoints are implemented. If you would like to contribute to this project, please feel free to fork the repository and submit a pull request on the develop branch.
To implement a new endpoint, you just need to create three classes:
- A request parameter class that extends
Request.Param(in thephoenixd-modelmodule) - A response class that implements the
Responseinterface (in thephoenixd-modelmodule) - The actual endpoint request sub-class (in the
phoenixd-restmodule) - The corresponding unit tests (in the
phoenixd-testmodule)
- /createinvoice
- /decodeinvoice
- /getlnaddress
- /payinvoice
- /paylnaddress
IMPORTANT: Please make sure to change the test.pay_lnaddress property in the app.properties file of the phoenixd-test module to a valid Lightning address that you control before running the tests.