@ -28,7 +28,7 @@ During startup of `lightningd` you can use the `--plugin=` option to
register one or more plugins that should be started. In case you wish
register one or more plugins that should be started. In case you wish
to start several plugins you have to use the `--plugin=` argument
to start several plugins you have to use the `--plugin=` argument
once for each plugin (or `--plugin-dir` or place them in the default
once for each plugin (or `--plugin-dir` or place them in the default
plugin dirs, usually `/usr/local/libexec/c-lightning/plugins` and
plugin dirs, usually `/usr/local/libexec/c-lightning/plugins` and
`~/.lightningd/plugins`). An example call might look like:
`~/.lightningd/plugins`). An example call might look like:
```
```
@ -63,36 +63,36 @@ this example:
```json
```json
{
{
"options": [
"options": [
{
{
"name": "greeting",
"name": "greeting",
"type": "string",
"type": "string",
"default": "World",
"default": "World",
"description": "What name should I call you?"
"description": "What name should I call you?"
}
}
],
],
"rpcmethods": [
"rpcmethods": [
{
{
"name": "hello",
"name": "hello",
"usage": "[name]",
"usage": "[name]",
"description": "Returns a personalized greeting for {greeting} (set via options)."
"description": "Returns a personalized greeting for {greeting} (set via options)."
},
},
{
{
"name": "gettime",
"name": "gettime",
"usage": "",
"usage": "",
"description": "Returns the current time in {timezone}",
"description": "Returns the current time in {timezone}",
"long_description": "Returns the current time in the timezone that is given as the only parameter.\nThis description may be quite long and is allowed to span multiple lines."
"long_description": "Returns the current time in the timezone that is given as the only parameter.\nThis description may be quite long and is allowed to span multiple lines."
}
}
],
],
"subscriptions": [
"subscriptions": [
"connect",
"connect",
"disconnect"
"disconnect"
],
],
"hooks": [
"hooks": [
"openchannel",
"openchannel",
"htlc_accepted"
"htlc_accepted"
],
],
"dynamic": true
"dynamic": true
}
}
```
```
@ -128,14 +128,14 @@ simple JSON object containing the options:
```json
```json
{
{
"options": {
"options": {
"greeting": "World"
"greeting": "World"
},
},
"configuration": {
"configuration": {
"lightning-dir": "/home/user/.lightning",
"lightning-dir": "/home/user/.lightning",
"rpc-file": "lightning-rpc",
"rpc-file": "lightning-rpc",
"startup": true
"startup": true
}
}
}
}
```
```
@ -165,21 +165,21 @@ For example the above `getmanifest` result will register two methods,
called `hello` and `gettime`:
called `hello` and `gettime`:
```json
```json
...
...
"rpcmethods": [
"rpcmethods": [
{
{
"name": "hello",
"name": "hello",
"usage": "[name]",
"usage": "[name]",
"description": "Returns a personalized greeting for {greeting} (set via options)."
"description": "Returns a personalized greeting for {greeting} (set via options)."
},
},
{
{
"name": "gettime",
"name": "gettime",
"description": "Returns the current time in {timezone}",
"description": "Returns the current time in {timezone}",
"usage": "",
"usage": "",
"long_description": "Returns the current time in the timezone that is given as the only parameter.\nThis description may be quite long and is allowed to span multiple lines."
"long_description": "Returns the current time in the timezone that is given as the only parameter.\nThis description may be quite long and is allowed to span multiple lines."
}
}
],
],
...
...
```
```
The RPC call will be passed through unmodified, with the exception of
The RPC call will be passed through unmodified, with the exception of
@ -225,14 +225,15 @@ A notification for topic `channel_opened` is sent if a peer successfully funded
with us. It contains the peer id, the funding amount (in millisatoshis), the funding
with us. It contains the peer id, the funding amount (in millisatoshis), the funding
transaction id, and a boolean indicating if the funding transaction has been included
transaction id, and a boolean indicating if the funding transaction has been included