<p>Yes it is possible.</p>
<p>All lightning messages have a space dedicated to optional messages in tlv encoding format. There is much documentation on this and many optional lighting based protocols are built using this space in the message.</p>
<p>See sphinx chat, impervious.ai, amp, etc</p>
<p>For some existing explanations:</p>
<ul>
<li><a href="https://bitcoin.stackexchange.com/questions/92639/what-is-the-tlv-payload-in-lnd-route/92640#92640">Explanation on tlv extensions</a></li>
<li><a href="https://bitcoin.stackexchange.com/questions/111205/how-to-estimate-available-size-on-the-extension-of-tlv-stream-of-lightning-payme">Available size in tlv extensions</a></li>
</ul>

CC BY-SA 4.0
2022-03-13T18:24:23.780Z
2022-03-13T18:24:23.780Z
arshbot
<p>Is it possible to send metadata along with a standard invoice payment within a Lightning network?</p>
<p>Trying to find out if it is possible to distribute some sort of tokens(side chain) while paying with satoshis.</p>

<lightning-network>
metadata along with payment within LN
thevikas
# metadata along with payment within LN

(Asked by: username_0 on 2022-02-24)

Is it possible to send metadata along with a standard invoice payment within a Lightning network?

Trying to find out if it is possible to distribute some sort of tokens(side chain) while paying with satoshis.

**Tags:** lightning-network


---

## 1 answers

### Answer by username_1 on 2022-03-13. Score: 1

Yes it is possible.

All lightning messages have a space dedicated to optional messages in tlv encoding format. There is much documentation on this and many optional lighting based protocols are built using this space in the message.

See sphinx chat, impervious.ai, amp, etc

For some existing explanations:

* [Explanation on tlv extensions](https://bitcoin.stackexchange.com/questions/92639/what-is-the-tlv-payload-in-lnd-route/92640#92640)
* [Available size in tlv extensions](https://bitcoin.stackexchange.com/questions/111205/how-to-estimate-available-size-on-the-extension-of-tlv-stream-of-lightning-payme)


---

