2019-08-31 14:30:56 +02:00
|
|
|
lightning-check -- Command for verifying parameters
|
2019-08-10 01:54:18 +02:00
|
|
|
==============================
|
|
|
|
|
|
|
|
SYNOPSIS
|
|
|
|
--------
|
|
|
|
|
2022-01-26 18:18:49 +01:00
|
|
|
**check** *command\_to\_check* [*parameters*]
|
2019-08-10 01:54:18 +02:00
|
|
|
|
|
|
|
DESCRIPTION
|
|
|
|
-----------
|
|
|
|
|
2023-10-25 07:39:04 +10:30
|
|
|
The **check** RPC command verifies another command without actually
|
|
|
|
making any changes.
|
2019-08-10 01:54:18 +02:00
|
|
|
|
|
|
|
The *command\_to\_check* is the name of the relevant command.
|
|
|
|
|
2021-10-24 11:44:56 +02:00
|
|
|
*parameters* is the command's parameters.
|
2019-08-10 01:54:18 +02:00
|
|
|
|
2023-10-25 07:39:04 +10:30
|
|
|
This is guaranteed to be safe, and will do all checks up to the point
|
|
|
|
where something in the system would need to be altered (such as checking
|
|
|
|
that channels are in the right state, peers connected, etc).
|
|
|
|
|
|
|
|
It does not guarantee successful execution of the command in all
|
2019-08-10 01:54:18 +02:00
|
|
|
cases. For example, a call to lightning-getroute(7) may still fail to
|
|
|
|
find a route even if checking the parameters succeeds.
|
|
|
|
|
|
|
|
RETURN VALUE
|
|
|
|
------------
|
|
|
|
|
2021-05-26 15:20:01 +09:30
|
|
|
[comment]: # (GENERATE-FROM-SCHEMA-START)
|
|
|
|
On success, an object is returned, containing:
|
2022-09-06 07:03:09 +09:30
|
|
|
|
2022-11-10 21:03:13 -05:00
|
|
|
- **command\_to\_check** (string): the *command\_to\_check* argument
|
2021-09-03 19:37:59 +09:30
|
|
|
|
2021-05-26 15:20:01 +09:30
|
|
|
[comment]: # (GENERATE-FROM-SCHEMA-END)
|
2019-08-10 01:54:18 +02:00
|
|
|
|
|
|
|
AUTHOR
|
|
|
|
------
|
|
|
|
|
|
|
|
Mark Beckwith <<wythe@intrig.com>> and Rusty Russell
|
|
|
|
<<rusty@rustcorp.com.au>> are mainly responsible.
|
|
|
|
|
|
|
|
RESOURCES
|
|
|
|
---------
|
|
|
|
|
|
|
|
Main web site: <https://github.com/ElementsProject/lightning>
|
2020-08-25 11:03:16 +09:30
|
|
|
|
2023-01-30 16:54:16 +10:30
|
|
|
[comment]: # ( SHA256STAMP:069205c0316e7096044ef71b3fa2525e389c907b45c73177469d06e69d03873c)
|