<p>Currently, this is a little bit complicated, I think you can write a plugin to simplify this procedure by looking at the code of <code>fetchinvoice</code>.</p>
<p>We have an open issue <a href="https://github.com/ElementsProject/lightning/issues/6578" rel="nofollow noreferrer">https://github.com/ElementsProject/lightning/issues/6578</a></p>

CC BY-SA 4.0
2023-08-18T16:47:47.560Z
2023-08-18T16:47:47.560Z
vincenzopalazzo
<p>I have a simulated network of 3 CLightning nodes, A,B, and C.
I want to use the sendonionmessage command to send a message from A to C going through B and then the response coming back to A through B.
I don't know what values I should use for the command's arguments and how to build the blinding argument.</p>
<pre><code>lightning-cli sendonionmessage &lt;first_id&gt; &lt;blinding&gt; &lt;hops&gt;
</code></pre>
<p>My question is how can I create the right arguments for this command?</p>

<lightning-network><core-lightning>
Sending onion messages with c-lightning
Amin Bashiri
# Sending onion messages with c-lightning

(Asked by: username_0 on 2023-08-15)

I have a simulated network of 3 CLightning nodes, A,B, and C.
I want to use the sendonionmessage command to send a message from A to C going through B and then the response coming back to A through B.
I don't know what values I should use for the command's arguments and how to build the blinding argument.
lightning-cli sendonionmessage   

My question is how can I create the right arguments for this command?

**Tags:** lightning-network, core-lightning


---

## 1 answers

### Answer by username_1 on 2023-08-18. Score: 1

Currently, this is a little bit complicated, I think you can write a plugin to simplify this procedure by looking at the code of `fetchinvoice`.

We have an open issue <https://github.com/ElementsProject/lightning/issues/6578>


---

