show unpaid invoices, balance calculated on server-side so isn't affected.

This commit is contained in:
fiatjaf
2020-09-29 15:43:11 -03:00
parent 2dfae9ecc1
commit e0b8470d40
6 changed files with 69 additions and 17 deletions
+3
View File
@@ -29,6 +29,9 @@ var LNbits = {
bolt11: bolt11
})
},
getWallet: function (wallet) {
return this.request('get', '/api/v1/wallet', wallet.inkey)
},
getPayments: function (wallet, checkPending) {
var query_param = checkPending ? '?check_pending' : ''
return this.request(