![]() |
![]()
| ![]() |
![]()
NAMElightning-setconfig -- Dynamically change some config options SYNOPSISsetconfig config [val] [transient] DESCRIPTIONCommand added in v23.08. The setconfig RPC command allows you set the (dynamic) configuration option named by config: options which take a value (as separate from simple flag options) also need a val parameter. This new value will also be written at the end of the config.setconfig file (but see lightningd-config), for persistence across restarts (and any old value commented out if they were set in other config files). You can see what options are dynamically adjustable using lightning-listconfigs(7). Note that you can also adjust existing options for stopped plugins; they will have an effect when the plugin is restarted.
RETURN VALUEOn success, an object containing config is returned. It is an object containing:
ERRORSThe following error codes may occur:
AUTHORRusty Russell <rusty@rustcorp.com.au> is mainly responsible for this feature. SEE ALSOlightningd-config(5), lightning-listconfigs(7) RESOURCESMain web site: https://github.com/ElementsProject/lightning EXAMPLESExample 1: Request: $ lightning-cli setconfig "autoclean-expiredinvoices-age" "300" { Response: { Example 2: Request: $ lightning-cli setconfig -k "config"="min-capacity-sat" "val"=500000 { Response: {
|