Skip to content

Commit c4fe2e7

Browse files
rustyrussellcdecker
authored andcommitted
doc: Manual page for sendonionmessage.
Signed-off-by: Rusty Russell <[email protected]>
1 parent 4d1214b commit c4fe2e7

File tree

6 files changed

+139
-1
lines changed

6 files changed

+139
-1
lines changed

doc/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ MANPAGES := doc/lightning-cli.1 \
5454
doc/lightning-reserveinputs.7 \
5555
doc/lightning-sendinvoice.7 \
5656
doc/lightning-sendonion.7 \
57+
doc/lightning-sendonionmessage.7 \
5758
doc/lightning-sendpay.7 \
5859
doc/lightning-setchannelfee.7 \
5960
doc/lightning-signmessage.7 \

doc/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ c-lightning Documentation
8484
lightning-reserveinputs <lightning-reserveinputs.7.md>
8585
lightning-sendinvoice <lightning-sendinvoice.7.md>
8686
lightning-sendonion <lightning-sendonion.7.md>
87+
lightning-sendonionmessage <lightning-sendonionmessage.7.md>
8788
lightning-sendpay <lightning-sendpay.7.md>
8889
lightning-sendpsbt <lightning-sendpsbt.7.md>
8990
lightning-setchannelfee <lightning-setchannelfee.7.md>

doc/lightning-sendonionmessage.7

Lines changed: 45 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
lightning-sendonionmessage -- low-level command to send an onion message
2+
================================================================
3+
4+
SYNOPSIS
5+
--------
6+
7+
**(WARNING: experimental-onion-messages only)**
8+
9+
**sendonionmessage** *hops* \[*reply_path*\]
10+
11+
DESCRIPTION
12+
-----------
13+
14+
The **sendonionmessage** RPC command can be used to send a message via
15+
the lightning network. These are currently used by *offers* to request
16+
and receive invoices.
17+
18+
*hops* is an array of json objects: *id* as a public key of the node,
19+
and either *rawtlv* containing a hexidecimal TLV to include, or any of
20+
the fields *short_channel_id*, *blinding*, *enctlv*, *invoice*,
21+
*invoice_request* and *invoice_error* to construct the onionmessage
22+
TLV with.
23+
24+
*reply_path* is a json object, containing a pubkey *blinding*, and an
25+
array *path* of objects containing *id* (a pubkey) and *enctlv* (a hex
26+
value, optional for final element).
27+
28+
RETURN VALUE
29+
------------
30+
31+
On success, an empty JSON object is returned.
32+
33+
AUTHOR
34+
------
35+
36+
Rusty Russell <<[email protected]>> is mainly responsible.
37+
38+
SEE ALSO
39+
--------
40+
41+
lightning-fetchinvoice(7), lightning-offer(7).
42+
43+
RESOURCES
44+
---------
45+
46+
Main web site: <https://github.com/ElementsProject/lightning>
47+
48+
[bolt04]: https://github.com/lightningnetwork/lightning-rfc/blob/master/04-onion-routing.md
49+

doc/lightningd-config.5

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -559,6 +559,29 @@ if C-lightning terminates\.
559559
Built-in plugins, which are installed with \fBlightningd\fR(8), are automatically
560560
considered important\.
561561

562+
.SH Experimental Options
563+
564+
Experimental options are subject to breakage between releases: they
565+
are made available for advanced users who want to test proposed
566+
features\. If lightningd is built configured with
567+
\fB--enable-experimental-features\fR these are on by default\.
568+
569+
570+
\fBexperimental-onion-messages\fR
571+
572+
573+
Specifying this enables sending, forwarding and receiving onion messages,
574+
which are in draft status in the BOLT specifications\.
575+
576+
577+
\fBexperimental-offers\fR
578+
579+
580+
Specifying this enables the \fBoffers\fR and \fBfetchinvoice\fR plugins and
581+
corresponding functionality, which are in draft status as BOLT12\.
582+
This usually requires \fBexperimental-onion-messages\fR as well\. See
583+
\fBlightning-offer\fR(7) and \fBlightning-fetchinvoice\fR(7)\.
584+
562585
.SH BUGS
563586

564587
You should report bugs on our github issues page, and maybe submit a fix
@@ -584,4 +607,4 @@ Main web site: \fIhttps://github.com/ElementsProject/lightning\fR
584607
Note: the modules in the ccan/ directory have their own licenses, but
585608
the rest of the code is covered by the BSD-style MIT license\.
586609

587-
\" SHA256STAMP:c927bd3afb61288bb67d941d113cdeefe1363b0c7a28936ef30d43af3ce66098
610+
\" SHA256STAMP:e9f294f15d8873a2332b5748179be09c1496c9e81576dc0e4546c047474289fd

doc/lightningd-config.5.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -463,6 +463,25 @@ if C-lightning terminates.
463463
Built-in plugins, which are installed with lightningd(8), are automatically
464464
considered important.
465465

466+
### Experimental Options
467+
468+
Experimental options are subject to breakage between releases: they
469+
are made available for advanced users who want to test proposed
470+
features. If lightningd is built configured with
471+
`--enable-experimental-features` these are on by default.
472+
473+
**experimental-onion-messages**
474+
475+
Specifying this enables sending, forwarding and receiving onion messages,
476+
which are in draft status in the BOLT specifications.
477+
478+
**experimental-offers**
479+
480+
Specifying this enables the `offers` and `fetchinvoice` plugins and
481+
corresponding functionality, which are in draft status as BOLT12.
482+
This usually requires **experimental-onion-messages** as well. See
483+
lightning-offer(7) and lightning-fetchinvoice(7).
484+
466485
BUGS
467486
----
468487

0 commit comments

Comments
 (0)