GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
LIGHTNING-AUTOCLEAN-STATUS(7) LIGHTNING-AUTOCLEAN-STATUS(7)

lightning-autoclean-status -- Examine auto-delete of old invoices/payments/forwards

autoclean-status [subsystem]

The autoclean-status RPC command tells you about the status of the autoclean plugin, optionally for only one subsystem.

subsystem (string, optional) (one of "succeededforwards", "failedforwards", "succeededpays", "failedpays", "paidinvoices", "expiredinvoices"): What subsystem to ask about. Currently supported subsystems are:
  • failedforwards: routed payments which did not succeed (failed or local_failed in listforwards status).

  • succeededforwards: routed payments which succeeded (settled in listforwards status).

  • failedpays: payment attempts which did not succeed (failed in listpays status).

  • succeededpays: payment attempts which succeeded (complete in listpays status).

  • expiredinvoices: invoices which were not paid (and cannot be) (expired in listinvoices status).

  • paidinvoices: invoices which were paid (paid in listinvoices status).

Note that the ages parameters are set by various autoclean-...-age parameters in your configuration: see lightningd-config(5). On success, an object containing autoclean is returned. It is an object containing:

succeededforwards (object, optional):
  • enabled (boolean): Whether autocleaning is enabled for successful listforwards.

  • cleaned (u64): Total number of deletions done (ever).
If enabled is true: - age (u64): Age (in seconds) to delete successful listforwards.

failedforwards (object, optional):
  • enabled (boolean): Whether autocleaning is enabled for failed listforwards.

  • cleaned (u64): Total number of deletions done (ever).
If enabled is true: - age (u64): Age (in seconds) to delete failed listforwards.

succeededpays (object, optional):
  • enabled (boolean): Whether autocleaning is enabled for successful listpays/listsendpays.

  • cleaned (u64): Total number of deletions done (ever).
If enabled is true: - age (u64): Age (in seconds) to delete successful listpays/listsendpays.

failedpays (object, optional):
  • enabled (boolean): Whether autocleaning is enabled for failed listpays/listsendpays.

  • cleaned (u64): Total number of deletions done (ever).
If enabled is true: - age (u64): Age (in seconds) to delete failed listpays/listsendpays.

paidinvoices (object, optional):
  • enabled (boolean): Whether autocleaning is enabled for paid listinvoices.

  • cleaned (u64): Total number of deletions done (ever).
If enabled is true: - age (u64): Age (in seconds) to paid listinvoices.

expiredinvoices (object, optional):
  • enabled (boolean): Whether autocleaning is enabled for expired (unpaid) listinvoices.

  • cleaned (u64): Total number of deletions done (ever).
If enabled is true: - age (u64): Age (in seconds) to expired listinvoices.

Rusty Russell <rusty@rustcorp.com.au> is mainly responsible.

lightningd-config(5), lightning-listinvoices(7), lightning-listpays(7), lightning-listforwards(7)

Main web site: https://github.com/ElementsProject/lightning

Example 1:

Request:

$ lightning-cli autoclean-status -k "subsystem"="expiredinvoices"

{

"id": "example:autoclean-status#1",
"method": "autoclean-status",
"params": {
"subsystem": "expiredinvoices"
} }

Response:

{

"autoclean": {
"expiredinvoices": {
"enabled": true,
"age": 300,
"cleaned": 0
}
} }

Example 2:

Request:

$ lightning-cli autoclean-status

{

"id": "example:autoclean-status#2",
"method": "autoclean-status",
"params": {} }

Response:

{

"autoclean": {
"succeededforwards": {
"enabled": false,
"cleaned": 0
},
"failedforwards": {
"enabled": false,
"cleaned": 0
},
"succeededpays": {
"enabled": false,
"cleaned": 7
},
"failedpays": {
"enabled": false,
"cleaned": 0
},
"paidinvoices": {
"enabled": false,
"cleaned": 0
},
"expiredinvoices": {
"enabled": true,
"age": 300,
"cleaned": 0
}
} }
Core Lightning v25.02.2

Search for    or go to Top of page |  Section 7 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.