Skip to content

Commit

Permalink
feat: add inbound balance to getbalance (#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
michael1011 committed Mar 17, 2019
1 parent 4b402a6 commit 55401c1
Show file tree
Hide file tree
Showing 7 changed files with 377 additions and 153 deletions.
8 changes: 4 additions & 4 deletions lib/lightning/LndClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -285,12 +285,12 @@ class LndClient extends BaseClient implements LightningClient {
}

/**
* Gets the total funds available across all open channels in satoshis
* Gets a list of all open channels
*/
public channelBalance = () => {
const request = new lndrpc.ChannelBalanceRequest();
public listChannels = () => {
const request = new lndrpc.ListChannelsRequest();

return this.unaryCall<lndrpc.ChannelBalanceRequest, lndrpc.ChannelBalanceResponse.AsObject>('channelBalance', request);
return this.unaryCall<lndrpc.ListChannelsRequest, lndrpc.ListChannelsResponse.AsObject>('listChannels', request);
}

/**
Expand Down
36 changes: 32 additions & 4 deletions lib/proto/boltzrpc_pb.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 55401c1

Please sign in to comment.