MSats and docs removed
parent
9f877c2762
commit
30a4f7f81e
@ -1,71 +0,0 @@
|
|||||||
### Core Lightning Commands Covered on RTL
|
|
||||||
|
|
||||||
=== bitcoin ===
|
|
||||||
- [x] feerates
|
|
||||||
- [x] newaddr
|
|
||||||
- [ ] txdiscard
|
|
||||||
- [ ] txprepare
|
|
||||||
- [ ] txsend
|
|
||||||
- [x] withdraw
|
|
||||||
|
|
||||||
=== channels ===
|
|
||||||
- [x] close
|
|
||||||
- [ ] fundchannel_cancel
|
|
||||||
- [ ] fundchannel_complete
|
|
||||||
- [ ] fundchannel_start
|
|
||||||
- [x] getroute
|
|
||||||
- [x] listchannels
|
|
||||||
- [x] listforwards
|
|
||||||
- [x] setchannelfee
|
|
||||||
|
|
||||||
=== network ===
|
|
||||||
- [x] connect
|
|
||||||
- [x] disconnect
|
|
||||||
- [x] listnodes
|
|
||||||
- [x] listpeers
|
|
||||||
- [ ] ping
|
|
||||||
|
|
||||||
=== payment ===
|
|
||||||
- [ ] createonion
|
|
||||||
- [x] decodepay
|
|
||||||
- [x] delexpiredinvoice
|
|
||||||
- [ ] delinvoice
|
|
||||||
- [x] invoice
|
|
||||||
- [x] listinvoices
|
|
||||||
- [x] listsendpays
|
|
||||||
- [ ] listtransactions
|
|
||||||
- [ ] sendonion
|
|
||||||
- [ ] sendpay
|
|
||||||
- [ ] waitanyinvoice
|
|
||||||
- [ ] waitinvoice
|
|
||||||
- [ ] waitsendpay
|
|
||||||
|
|
||||||
=== plugin ===
|
|
||||||
- [ ] autocleaninvoice
|
|
||||||
- [ ] estimatefees
|
|
||||||
- [x] fundchannel
|
|
||||||
- [ ] getchaininfo
|
|
||||||
- [ ] getrawblockbyheight
|
|
||||||
- [ ] getutxout
|
|
||||||
- [x] listpays
|
|
||||||
- [x] pay
|
|
||||||
- [ ] paystatus
|
|
||||||
- [ ] plugin
|
|
||||||
- [ ] sendrawtransaction
|
|
||||||
|
|
||||||
=== utility ===
|
|
||||||
- [ ] check
|
|
||||||
- [x] checkmessage
|
|
||||||
- [x] getinfo
|
|
||||||
- [ ] getlog
|
|
||||||
- [ ] getsharedsecret
|
|
||||||
- [ ] help
|
|
||||||
- [ ] listconfigs
|
|
||||||
- [x] listfunds
|
|
||||||
- [x] signmessage
|
|
||||||
- [ ] stop
|
|
||||||
- [ ] waitblockheight
|
|
||||||
|
|
||||||
=== developer ===
|
|
||||||
- [ ] dev-listaddrs
|
|
||||||
- [ ] dev-rescan-outputs
|
|
@ -1,57 +0,0 @@
|
|||||||
[Intro](../README.md) -- [Application Features](Application_features.md) -- [Road Map](Roadmap.md) -- **LND API Coverage** -- [Application Configurations](Application_configurations.md)
|
|
||||||
|
|
||||||
- [x] GenSeed
|
|
||||||
- [x] InitWallet
|
|
||||||
- [x] UnlockWallet
|
|
||||||
- [ ] ChangePassword
|
|
||||||
- [x] WalletBalance
|
|
||||||
- [x] ChannelBalance
|
|
||||||
- [x] GetTransactions
|
|
||||||
- [ ] EstimateFee
|
|
||||||
- [x] SendCoins
|
|
||||||
- [ ] ListUnspent
|
|
||||||
- [ ] SubscribeTransactions
|
|
||||||
- [ ] SendMany
|
|
||||||
- [x] NewAddress
|
|
||||||
- [x] SignMessage
|
|
||||||
- [x] VerifyMessage
|
|
||||||
- [x] ConnectPeer
|
|
||||||
- [x] DisconnectPeer
|
|
||||||
- [x] ListPeers
|
|
||||||
- [x] GetInfo
|
|
||||||
- [x] PendingChannels
|
|
||||||
- [x] ListChannels
|
|
||||||
- [ ] SubscribeChannelEvents
|
|
||||||
- [x] ClosedChannels
|
|
||||||
- [ ] OpenChannelSync
|
|
||||||
- [x] OpenChannel
|
|
||||||
- [x] CloseChannel
|
|
||||||
- [ ] AbandonChannel
|
|
||||||
- [x] SendPayment
|
|
||||||
- [ ] SendPaymentSync
|
|
||||||
- [ ] SendToRoute
|
|
||||||
- [ ] SendToRouteSync
|
|
||||||
- [x] AddInvoice
|
|
||||||
- [x] ListInvoices
|
|
||||||
- [ ] LookupInvoice
|
|
||||||
- [ ] SubscribeInvoices
|
|
||||||
- [x] DecodePayReq
|
|
||||||
- [x] ListPayments
|
|
||||||
- [ ] DeleteAllPayments
|
|
||||||
- [ ] DescribeGraph
|
|
||||||
- [x] GetChanInfo
|
|
||||||
- [x] GetNodeInfo
|
|
||||||
- [x] QueryRoutes
|
|
||||||
- [x] GetNetworkInfo
|
|
||||||
- [ ] StopDaemon
|
|
||||||
- [ ] SubscribeChannelGraph
|
|
||||||
- [ ] DebugLevel
|
|
||||||
- [x] FeeReport
|
|
||||||
- [x] UpdateChannelPolicy
|
|
||||||
- [x] ForwardingHistory
|
|
||||||
- [x] ExportChannelBackup
|
|
||||||
- [x] ExportAllChannelBackups
|
|
||||||
- [x] VerifyChanBackup
|
|
||||||
- [x] RestoreChannelBackups
|
|
||||||
- [ ] SubscribeChannelBackups
|
|
||||||
- [ ] Messages
|
|
@ -1,35 +0,0 @@
|
|||||||
import request from 'request-promise';
|
|
||||||
import { Logger } from '../../utils/logger.js';
|
|
||||||
import { Common } from '../../utils/common.js';
|
|
||||||
let options = null;
|
|
||||||
const logger = Logger;
|
|
||||||
const common = Common;
|
|
||||||
export const getBalance = (req, res, next) => {
|
|
||||||
logger.log({ selectedNode: req.session.selectedNode, level: 'INFO', fileName: 'Balance', msg: 'Getting Balance..' });
|
|
||||||
options = common.getOptions(req);
|
|
||||||
if (options.error) {
|
|
||||||
return res.status(options.statusCode).json({ message: options.message, error: options.error });
|
|
||||||
}
|
|
||||||
options.url = req.session.selectedNode.ln_server_url + '/v1/listfunds';
|
|
||||||
request.post(options).then((body) => {
|
|
||||||
let confBalance = 0;
|
|
||||||
let unconfBalance = 0;
|
|
||||||
let totalBalance = 0;
|
|
||||||
const versionCompatible = common.isVersionCompatible(req.session.selectedNode.ln_version, '23.02');
|
|
||||||
body.outputs.forEach((output) => {
|
|
||||||
if (output.status === 'confirmed') {
|
|
||||||
confBalance = confBalance + (versionCompatible ? (output.amount_msat / 1000) : output.value);
|
|
||||||
}
|
|
||||||
else if (output.status === 'unconfirmed') {
|
|
||||||
unconfBalance = unconfBalance + (versionCompatible ? (output.amount_msat / 1000) : output.value);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
totalBalance = confBalance + unconfBalance;
|
|
||||||
const walBalance = { totalBalance: totalBalance || 0, confBalance: confBalance || 0, unconfBalance: unconfBalance || 0 };
|
|
||||||
logger.log({ selectedNode: req.session.selectedNode, level: 'INFO', fileName: 'Balance', msg: 'Balance Received', data: walBalance });
|
|
||||||
res.status(200).json(walBalance);
|
|
||||||
}).catch((errRes) => {
|
|
||||||
const err = common.handleError(errRes, 'Balance', 'Get Balance Error', req.session.selectedNode);
|
|
||||||
return res.status(err.statusCode).json({ message: err.message, error: err.error });
|
|
||||||
});
|
|
||||||
};
|
|
Loading…
Reference in New Issue