Important
The library is in beta.
A Rust library that implements the main lightning logic of the lipa wallet app.
The rust interface of the latest released version is documented here.
For the language-specific calls, refer to the respective language bindings:
Create .cargo/config.toml
file with desired values (see .cargo/config.toml.sample
as an example).
Create a new node:
make testregisternode
Copy the mnemonic and put it into ./.cargo/config.toml
under BREEZ_SDK_MNEMONIC
.
Warning
Keep the mnemonic secure and safe, it is your local mainnet wallet.
To start the example node included in this repository, run:
make run-node
To start the example node in another environment:
make run-node ARGS=dev
local
(default), dev
, stage
, and prod
environments are available.
To test background receive:
- start the regular example node, issue an invoice, and shut it down
- run
make run-notification-handler
- run
payment_received <payment hash of issued invoice> <environment>
- do either
- don't pay the invoice or pay a different invoice → after the timeout of 60 secs, the action
None
should be printed - pay the invoice issued in step 1 → the action
ShowNotification
should be printed
- don't pay the invoice or pay a different invoice → after the timeout of 60 secs, the action
View logs in .3l_node_{ENVIRONMENT_CODE}/logs.txt
.
To start a fresh node, delete the .3l_node_{ENVIRONMENT_CODE}
directory.