check command_to_check [parameters]
The check RPC command verifies another command without actually making any changes.
The command_to_check is the name of the relevant command.
parameters is the command's parameters.
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 cases. For example, a call to lightning-getroute(7) may still fail to find a route even if checking the parameters succeeds.
On success, an object is returned, containing:
- command_to_check (string): the command_to_check argument
Mark Beckwith <[email protected]> and Rusty Russell <[email protected]> are mainly responsible.
Main web site: https://github.com/ElementsProject/lightning