Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs: add initial documentation on dunder's API endpoints #16

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 17 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,28 @@ on-chain fee.

More on how this works [here](https://github.com/hsjoberg/blixt-wallet/issues/242).

## Dunder's API

The API endpoints supplied by dunder LSP are:
sesam marked this conversation as resolved.
Show resolved Hide resolved

- /estimateFee - returns estimated fee (sats) and fee rate (sats per byte)

- /getInfo - returns info from lnd, see https://github.com/hsjoberg/dunder-lsp/blob/master/proto/rpc.proto#L1596 and look for GetInfoReponse to understand the returned data. Exact line numbers may vary.

- /ondemand-channel
- /check-status - checks validity and sats claimable.
- /claim - rarely neded. Used to check status of a request in case /register does not succeed to give full feedback.
sesam marked this conversation as resolved.
Show resolved Hide resolved
- /register - registers a channel request and takes care of opening the channel to the user. Then dunder will push the amount into a new channel.
- /service-status - returns status (boolean), minimum and maximum payment accepted, current fee estimate, and peer.

## Build

Dunder require lnd as the Lightning backend right now, though the plan is to
Dunder requires lnd as the Lightning backend right now, though the plan is to
make the service implementation independent.

The `master` branch always expects the latest version of lnd. Lnd compiled with routerrpc is required.
The `master` branch always expects the latest version of lnd, which must be compiled with routerrpc enabled.

1. Run lnd, wallet must be unlocked for Dunder to operate correctly
1. Run lnd. The wallet must be unlocked for Dunder to operate correctly.
sesam marked this conversation as resolved.
Show resolved Hide resolved
2. `git clone https://github.com/hsjoberg/dunder-lsp && cd dunder-lsp`
3. Copy `config/default.json_TEMPLATE` to `config/default.json` and set up your configuration
4. `yarn`
Expand Down