2024-01-15 13:35:14 -08:00
{
"$schema" : "../rpc-schema-draft.json" ,
"type" : "object" ,
"additionalProperties" : false ,
"rpc" : "help" ,
"title" : "Command to return all information about RPC commands." ,
"description" : [
"The **help** is a RPC command which is possible consult all information about the RPC commands, or a specific command if *command* is given." ,
"" ,
"Note that the lightning-cli(1) tool will prefer to list a man page when a specific *command* is specified, and will only return the JSON if the man page is not found."
] ,
"request" : {
"required" : [ ] ,
"properties" : {
"command" : {
"type" : "string" ,
"description" : [
"Command to get information about."
]
}
}
} ,
"response" : {
"required" : [
"help"
] ,
"properties" : {
"help" : {
"type" : "array" ,
"items" : {
"type" : "object" ,
"additionalProperties" : true ,
"required" : [
2024-07-23 15:13:07 -07:00
"command"
2024-01-15 13:35:14 -08:00
] ,
"properties" : {
"command" : {
"type" : "string" ,
"description" : [
"The command."
]
}
}
}
} ,
"format-hint" : {
"type" : "string" ,
"enum" : [
"simple"
] ,
"description" : [
"Prints the help in human-readable flat form."
]
}
}
} ,
2024-06-20 14:57:02 -07:00
"errors" : [
"On failure, one of the following error codes may be returned:" ,
"" ,
"- -32602: Error in given parameters."
] ,
"author" : [
"Vincenzo Palazzo <<vincenzo.palazzo@protonmail.com>> wrote the initial version of this man page," ,
"but many others did the hard work of actually implementing this rpc command."
] ,
"resources" : [
"Main web site: <https://github.com/ElementsProject/lightning>"
] ,
"examples" : [
2024-01-15 13:35:14 -08:00
{
2024-03-27 18:45:18 -07:00
"request" : {
"id" : "example:help#1" ,
"method" : "help" ,
"params" : {
"command" : "pay"
}
} ,
"response" : {
"help" : [
{
2024-07-18 00:28:22 -07:00
"command" : "pay bolt11 [amount_msat] [label] [riskfactor] [maxfeepercent] [retry_for] [maxdelay] [exemptfee] [localinvreqid] [exclude] [maxfee] [description] [partial_msat] [dev_use_shadow]"
2024-03-27 18:45:18 -07:00
}
] ,
"format-hint" : "simple"
2024-01-15 13:35:14 -08:00
}
} ,
{
2024-03-27 18:45:18 -07:00
"request" : {
"id" : "example:help#2" ,
"method" : "help" ,
"params" : {
"command" : "dev"
}
} ,
"response" : {
"help" : [
{
2024-07-23 15:13:07 -07:00
"command" : "dev subcommand=crash|rhash|slowcmd"
2024-03-27 18:45:18 -07:00
}
] ,
"format-hint" : "simple"
2024-01-15 13:35:14 -08:00
}
}
]
}