Skip to content

Commit

Permalink
Version
Browse files Browse the repository at this point in the history
  • Loading branch information
chill117 committed Apr 11, 2022
1 parent 106d89b commit 3611c57
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Changelog

* v1.3.0:
* Added getBalance method to all LN backends
* v1.2.0:
* Added C-Lightning backend - JSON-RPC over unix sock or HTTP-RPC made available by Sparko plugin
* v1.1.1:
Expand Down
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,14 @@ ln.getInvoiceStatus(paymentHash).then(result => {
console.error('getInvoiceStatus FAILED:', { error });
});

// Get current spendable Lightning balance.
ln.getBalance().then(result => {
// `result` will be the balance in millisatoshis.
console.log('getBalance OK', { result });
}).catch(error => {
console.error('getBalance FAILED:', { error });
});

// Open a new channel.
// Most backends do not support this method.
ln.openChannel(remoteId, localAmt, pushAmt, makePrivate).then(result => {
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lightning-backends",
"version": "1.2.0",
"version": "1.3.0",
"description": "Module to integrate with various Lightning Network node software and service providers",
"keywords": [
"bitcoin",
Expand Down

0 comments on commit 3611c57

Please sign in to comment.