2021-11-04 15:10:21 +01:00
.TH "LIGHTNING-LISTCONFIGS" "7" "" "" "lightning-listconfigs"
.SH NAME
lightning-listconfigs - Command to list all configuration options\.
.SH SYNOPSIS
2022-01-26 18:18:49 +01:00
\fB listconfigs\fR [\fI config\fR ]
2021-11-04 15:10:21 +01:00
.SH DESCRIPTION
2022-06-22 18:37:46 +02:00
\fI config\fR (optional) is a configuration option name, or "plugin" to show plugin options
The \fB listconfigs\fR RPC command to list all configuration options, or with \fI config\fR only a selection\.
2021-11-04 15:10:21 +01:00
The returned values reflect the current configuration, including
showing default values (\fB dev-\fR options are not shown)\.
.SH EXAMPLE JSON REQUEST
.nf
.RS
{
"id": 82,
"method": "listconfigs",
"params": {
"config": "network"
}
}
.RE
.fi
.SH RETURN VALUE
On success, an object is returned, containing:
.RS
.IP \[ bu]
\fB # version\fR (string, optional): Special field indicating the current version
.IP \[ bu]
\fB plugins\fR (array of objects, optional):
.RS
.IP \[ bu]
\fB path\fR (string): Full path of the plugin
.IP \[ bu]
\fB name\fR (string): short name of the plugin
.IP \[ bu]
\fB options\fR (object, optional): Specific options set for this plugin:
.RE
.IP \[ bu]
\fB important-plugins\fR (array of objects, optional):
.RS
.IP \[ bu]
\fB path\fR (string): Full path of the plugin
.IP \[ bu]
\fB name\fR (string): short name of the plugin
.IP \[ bu]
\fB options\fR (object, optional): Specific options set for this plugin:
.RE
.IP \[ bu]
\fB conf\fR (string, optional): \fB conf\fR field from cmdline, or default
.IP \[ bu]
\fB lightning-dir\fR (string, optional): \fB lightning-dir\fR field from config or cmdline, or default
.IP \[ bu]
\fB network\fR (string, optional): \fB network\fR field from config or cmdline, or default
.IP \[ bu]
\fB allow-deprecated-apis\fR (boolean, optional): \fB allow-deprecated-apis\fR field from config or cmdline, or default
.IP \[ bu]
\fB rpc-file\fR (string, optional): \fB rpc-file\fR field from config or cmdline, or default
.IP \[ bu]
\fB disable-plugin\fR (array of strings, optional):
.RS
.IP \[ bu]
\fB disable-plugin\fR field from config or cmdline
.RE
.IP \[ bu]
\fB always-use-proxy\fR (boolean, optional): \fB always-use-proxy\fR field from config or cmdline, or default
.IP \[ bu]
\fB daemon\fR (boolean, optional): \fB daemon\fR field from config or cmdline, or default
.IP \[ bu]
\fB wallet\fR (string, optional): \fB wallet\fR field from config or cmdline, or default
.IP \[ bu]
\fB large-channels\fR (boolean, optional): \fB large-channels\fR field from config or cmdline, or default
.IP \[ bu]
\fB experimental-dual-fund\fR (boolean, optional): \fB experimental-dual-fund\fR field from config or cmdline, or default
.IP \[ bu]
\fB experimental-onion-messages\fR (boolean, optional): \fB experimental-onion-messages\fR field from config or cmdline, or default
.IP \[ bu]
\fB experimental-offers\fR (boolean, optional): \fB experimental-offers\fR field from config or cmdline, or default
.IP \[ bu]
\fB experimental-shutdown-wrong-funding\fR (boolean, optional): \fB experimental-shutdown-wrong-funding\fR field from config or cmdline, or default
.IP \[ bu]
2021-11-04 15:15:51 +01:00
\fB experimental-websocket-port\fR (u16, optional): \fB experimental-websocket-port\fR field from config or cmdline, or default
.IP \[ bu]
2021-11-04 15:10:21 +01:00
\fB rgb\fR (hex, optional): \fB rgb\fR field from config or cmdline, or default (always 6 characters)
.IP \[ bu]
\fB alias\fR (string, optional): \fB alias\fR field from config or cmdline, or default
.IP \[ bu]
\fB pid-file\fR (string, optional): \fB pid-file\fR field from config or cmdline, or default
.IP \[ bu]
\fB ignore-fee-limits\fR (boolean, optional): \fB ignore-fee-limits\fR field from config or cmdline, or default
.IP \[ bu]
\fB watchtime-blocks\fR (u32, optional): \fB watchtime-blocks\fR field from config or cmdline, or default
.IP \[ bu]
\fB max-locktime-blocks\fR (u32, optional): \fB max-locktime-blocks\fR field from config or cmdline, or default
.IP \[ bu]
\fB funding-confirms\fR (u32, optional): \fB funding-confirms\fR field from config or cmdline, or default
.IP \[ bu]
\fB cltv-delta\fR (u32, optional): \fB cltv-delta\fR field from config or cmdline, or default
.IP \[ bu]
\fB cltv-final\fR (u32, optional): \fB cltv-final\fR field from config or cmdline, or default
.IP \[ bu]
\fB commit-time\fR (u32, optional): \fB commit-time\fR field from config or cmdline, or default
.IP \[ bu]
\fB fee-base\fR (u32, optional): \fB fee-base\fR field from config or cmdline, or default
.IP \[ bu]
\fB rescan\fR (integer, optional): \fB rescan\fR field from config or cmdline, or default
.IP \[ bu]
\fB fee-per-satoshi\fR (u32, optional): \fB fee-per-satoshi\fR field from config or cmdline, or default
.IP \[ bu]
\fB max-concurrent-htlcs\fR (u32, optional): \fB max-concurrent-htlcs\fR field from config or cmdline, or default
.IP \[ bu]
2022-03-26 14:36:28 +01:00
\fB htlc-minimum-msat\fR (msat, optional): \fB htlc-minimum-msat\fR field from config or cmdline, or default
.IP \[ bu]
\fB htlc-maximum-msat\fR (msat, optional): \fB htlc-maximum-msat\fR field from config or cmdline, or default
.IP \[ bu]
2021-11-04 15:15:51 +01:00
\fB max-dust-htlc-exposure-msat\fR (msat, optional): \fB max-dust-htlc-exposure-mast\fR field from config or cmdline, or default
.IP \[ bu]
2021-11-04 15:10:21 +01:00
\fB min-capacity-sat\fR (u64, optional): \fB min-capacity-sat\fR field from config or cmdline, or default
.IP \[ bu]
\fB addr\fR (string, optional): \fB addr\fR field from config or cmdline (can be more than one)
.IP \[ bu]
\fB announce-addr\fR (string, optional): \fB announce-addr\fR field from config or cmdline (can be more than one)
.IP \[ bu]
\fB bind-addr\fR (string, optional): \fB bind-addr\fR field from config or cmdline (can be more than one)
.IP \[ bu]
\fB offline\fR (boolean, optional): \fB true\fR if \fB offline\fR was set in config or cmdline
.IP \[ bu]
\fB autolisten\fR (boolean, optional): \fB autolisten\fR field from config or cmdline, or default
.IP \[ bu]
\fB proxy\fR (string, optional): \fB proxy\fR field from config or cmdline, or default
.IP \[ bu]
\fB disable-dns\fR (boolean, optional): \fB true\fR if \fB disable-dns\fR was set in config or cmdline
.IP \[ bu]
2022-03-26 14:36:28 +01:00
\fB disable-ip-discovery\fR (boolean, optional): \fB true\fR if \fB disable-ip-discovery\fR was set in config or cmdline
.IP \[ bu]
2021-11-04 15:10:21 +01:00
\fB encrypted-hsm\fR (boolean, optional): \fB true\fR if \fB encrypted-hsm\fR was set in config or cmdline
.IP \[ bu]
\fB rpc-file-mode\fR (string, optional): \fB rpc-file-mode\fR field from config or cmdline, or default
.IP \[ bu]
\fB log-level\fR (string, optional): \fB log-level\fR field from config or cmdline, or default
.IP \[ bu]
\fB log-prefix\fR (string, optional): \fB log-prefix\fR field from config or cmdline, or default
.IP \[ bu]
\fB log-file\fR (string, optional): \fB log-file\fR field from config or cmdline, or default
.IP \[ bu]
\fB log-timestamps\fR (boolean, optional): \fB log-timestamps\fR field from config or cmdline, or default
.IP \[ bu]
\fB force-feerates\fR (string, optional): force-feerate configuration setting, if any
.IP \[ bu]
\fB subdaemon\fR (string, optional): \fB subdaemon\fR fields from config or cmdline if any (can be more than one)
.IP \[ bu]
2021-11-04 15:15:51 +01:00
\fB fetchinvoice-noconnect\fR (boolean, optional): \fB featchinvoice-noconnect\fR fileds from config or cmdline, or default
.IP \[ bu]
2021-11-04 15:10:21 +01:00
\fB tor-service-password\fR (string, optional): \fB tor-service-password\fR field from config or cmdline, if any
.RE
On failure, one of the following error codes may be returned:
.RS
.IP \[ bu]
-32602: Error in given parameters or field with \fI config\fR name doesn't exist\.
.RE
.SH EXAMPLE JSON RESPONSE
.nf
.RS
{
"# version": "v0.9.0-1",
"lightning-dir": "/media/vincent/Maxtor/sanboxTestWrapperRPC/lightning_dir_dev",
"network": "testnet",
"allow-deprecated-apis": true,
"rpc-file": "lightning-rpc",
"plugins": [
{
"path": "/home/vincent/Github/plugins/sauron/sauron.py",
"name": "sauron.py",
"options": {
"sauron-api-endpoint": "http://blockstream.info/testnet/api/",
"sauron-tor-proxy": ""
}
},
{
"path": "/home/vincent/Github/reckless/reckless.py",
"name": "reckless.py"
}
],
"important-plugins": [
{
"path": "/home/vincent/Github/lightning/lightningd/../plugins/autoclean",
"name": "autoclean",
"options": {
"autocleaninvoice-cycle": null,
"autocleaninvoice-expired-by": null
}
},
{
"path": "/home/vincent/Github/lightning/lightningd/../plugins/fundchannel",
"name": "fundchannel"
},
{
"path": "/home/vincent/Github/lightning/lightningd/../plugins/keysend",
"name": "keysend"
},
{
"path": "/home/vincent/Github/lightning/lightningd/../plugins/pay",
"name": "pay",
"options": {
"disable-mpp": false
}
}
],
"important-plugin": "/home/vincent/Github/lightning/lightningd/../plugins/autoclean",
"important-plugin": "/home/vincent/Github/lightning/lightningd/../plugins/fundchannel",
"important-plugin": "/home/vincent/Github/lightning/lightningd/../plugins/keysend",
"important-plugin": "/home/vincent/Github/lightning/lightningd/../plugins/pay",
"plugin": "/home/vincent/Github/plugins/sauron/sauron.py",
"plugin": "/home/vincent/Github/reckless/reckless.py",
"disable-plugin": [
"bcli"
],
"always-use-proxy": false,
"daemon": "false",
"wallet": "sqlite3:///media/vincent/Maxtor/sanboxTestWrapperRPC/lightning_dir_dev/testnet/lightningd.sqlite3",
"wumbo": false,
"wumbo": false,
"rgb": "03ad98",
"alias": "BRUCEWAYN-TES-DEV",
"pid-file": "/media/vincent/Maxtor/sanboxTestWrapperRPC/lightning_dir_dev/lightningd-testne...",
"ignore-fee-limits": true,
"watchtime-blocks": 6,
"max-locktime-blocks": 2016,
"funding-confirms": 1,
"commit-fee-min": 0,
"commit-fee-max": 0,
"cltv-delta": 6,
"cltv-final": 10,
"commit-time": 10,
"fee-base": 1,
"rescan": 30,
"fee-per-satoshi": 10,
"max-concurrent-htlcs": 483,
"min-capacity-sat": 10000,
"addr": "autotor:127.0.0.1:9051",
"bind-addr": "127.0.0.1:9735",
"announce-addr": "fp463inc4w3lamhhduytrwdwq6q6uzugtaeapylqfc43agrdnnqsheyd.onion:9735",
"offline": "false",
"autolisten": true,
"proxy": "127.0.0.1:9050",
"disable-dns": "false",
"encrypted-hsm": false,
"rpc-file-mode": "0600",
"log-level": "DEBUG",
"log-prefix": "lightningd",
}
.RE
.fi
.SH AUTHOR
Vincenzo Palazzo \fI <vincenzo.palazzo@protonmail.com\fR > wrote the initial version of this man page, but many others did the hard work of actually implementing this rpc command\.
.SH SEE ALSO
\fB lightning-getinfo\fR (7), \fB lightningd-config\fR (5)
.SH RESOURCES
Main web site: \fI https://github.com/ElementsProject/lightning\fR
2022-07-13 17:45:39 +02:00
\" SHA256STAMP:7ac9ef3477f64fd3a4181cb27b8810ecf2c1a082688180716adfe79843ab09aa