mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-18 21:35:11 +01:00
976c0c90bc
- Changed ALL `doc/schemas/lightning-*.json` file's `json_example` to `examples` - Change the heading from example to examples - Bring shell command before the json command - Move Example to the end of the page - Remove horizontal line from Example
48 lines
1.0 KiB
JSON
48 lines
1.0 KiB
JSON
{
|
|
"$schema": "../rpc-schema-draft.json",
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"rpc": "stop",
|
|
"title": "Command to shutdown the Core Lightning node.",
|
|
"description": [
|
|
"The **stop** is a RPC command to shut off the Core Lightning node."
|
|
],
|
|
"request": {
|
|
"required": [],
|
|
"properties": {}
|
|
},
|
|
"response": {
|
|
"required": [
|
|
"result"
|
|
],
|
|
"properties": {
|
|
"result": {
|
|
"type": "string",
|
|
"added": "v24.05",
|
|
"enum": [
|
|
"Shutdown complete"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"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": [
|
|
{
|
|
"request": {
|
|
"id": "example:stop#1",
|
|
"method": "stop",
|
|
"params": {}
|
|
},
|
|
"response": {
|
|
"result": "Shutdown complete"
|
|
}
|
|
}
|
|
]
|
|
}
|