Skip to content

Commit c50bd38

Browse files
rustyrussellsangbida
authored andcommitted
doc: recommend injectpaymentonion in place of sendonion.
Among other things, injectpaymentonion insists on knowing the destination amount_msat. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
1 parent 89f411c commit c50bd38

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

contrib/msggen/msggen/schema.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29732,6 +29732,7 @@
2973229732
"rpc": "sendonion",
2973329733
"title": "Send a payment with a custom onion packet",
2973429734
"description": [
29735+
"Note: you probably want to use the more modern and flexible `injectpaymentonion` command instead of this.",
2973529736
"The **sendonion** RPC command can be used to initiate a payment attempt with a custom onion packet. The onion packet is used to deliver instructions for hops along the route on how to behave. Normally these instructions are indications on where to forward a payment and what parameters to use, or contain details of the payment for the final hop. However, it is possible to add arbitrary information for hops in the custom onion, allowing for custom extensions that are not directly supported by Core Lightning.",
2973629737
"",
2973729738
"If the first element of *route* does not have \"channel\" set, a suitable channel (if any) will be chosen, otherwise that specific short-channel-id is used. The following is an example of a 3 hop onion:",
@@ -30057,6 +30058,7 @@
3005730058
"Christian Decker <<decker.christian@gmail.com>> is mainly responsible."
3005830059
],
3005930060
"see_also": [
30061+
"lightning-injectpaymentonion(7)",
3006030062
"lightning-createonion(7)",
3006130063
"lightning-sendpay(7)",
3006230064
"lightning-listsendpays(7)"

doc/schemas/sendonion.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"rpc": "sendonion",
55
"title": "Send a payment with a custom onion packet",
66
"description": [
7+
"Note: you probably want to use the more modern and flexible `injectpaymentonion` command instead of this.",
78
"The **sendonion** RPC command can be used to initiate a payment attempt with a custom onion packet. The onion packet is used to deliver instructions for hops along the route on how to behave. Normally these instructions are indications on where to forward a payment and what parameters to use, or contain details of the payment for the final hop. However, it is possible to add arbitrary information for hops in the custom onion, allowing for custom extensions that are not directly supported by Core Lightning.",
89
"",
910
"If the first element of *route* does not have \"channel\" set, a suitable channel (if any) will be chosen, otherwise that specific short-channel-id is used. The following is an example of a 3 hop onion:",
@@ -329,6 +330,7 @@
329330
"Christian Decker <<decker.christian@gmail.com>> is mainly responsible."
330331
],
331332
"see_also": [
333+
"lightning-injectpaymentonion(7)",
332334
"lightning-createonion(7)",
333335
"lightning-sendpay(7)",
334336
"lightning-listsendpays(7)"

0 commit comments

Comments
 (0)