You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create reports for on-chain and off-chain activity of a node, similar to those produced by ln-accounting. For every off and on chain transaction that occurs within the period specified, generate an accounting entry. Transactions that pay fees will have a separate entry added for the fees paid.
Entry Format
Timestamp: unix timestamp
OnChain: whether the transaction was on or off chain
Amount: expressed in msat for the sake of a consistent unit across on/off chain
Type: type of transaction, see below
TxID: transaction id on chain,
FromID: source of funds, when available
ToID: destination of funds, when available
Fiat: fiat equivalent
ID: unique identifier, if available
Note: additional note to provide context
Entry Types
Each transaction added to the report should have a type which describes to the reader what lightning related operation the transaction was a part of. The first iteration of these reports will have the following types:
ChannelOpen: channel opening transaction
ChannelClose: channel closing transaction
HtlcForward: fees earned from forwarding off chain
Receipt: receipt on chain, invoice settle off chain
Payment: balance spend from wallet on chain, settled payment off chain
CircularRebalance: special case of off chain send, where destination is our own node, only record fees
ChannelOpenFee: fees paid to open a channel
ChannelCloseFee: fees paid to close a channel
RoutingFee: fees paid off chain for our own payments
ChainFee: fees pain on chain for our own payments
This classification falls short for on chain transactions, because we cannot distinguish between sends the user initiated on chain and sweeps produced by lnd on chain. This distinction is out of scope for this task. Follow up tasks will work on splitting these categories out further.
Export
These reports should be queryable via rpc, or cli interface. The ability to export directly as a CSV should also be supported, as this is a common use case for this kind of report.
Create reports for on-chain and off-chain activity of a node, similar to those produced by ln-accounting. For every off and on chain transaction that occurs within the period specified, generate an accounting entry. Transactions that pay fees will have a separate entry added for the fees paid.
Entry Format
Entry Types
Each transaction added to the report should have a type which describes to the reader what lightning related operation the transaction was a part of. The first iteration of these reports will have the following types:
This classification falls short for on chain transactions, because we cannot distinguish between sends the user initiated on chain and sweeps produced by lnd on chain. This distinction is out of scope for this task. Follow up tasks will work on splitting these categories out further.
Export
These reports should be queryable via rpc, or cli interface. The ability to export directly as a CSV should also be supported, as this is a common use case for this kind of report.
Example output:
The text was updated successfully, but these errors were encountered: