<p><br>
is there an example of how using BitcoinJ send BTC with an attachment?<br> Lets say I want to write to blockchain "Vaclav Bilek Born 1991". <br>
If I understand it correctly, its just about sending minimum bitcoins possible with current minimum fee? <br>
Is here a way how to do this in BitcoinJ ?<br>
Usual syntax of sending BTC allow me only to send BTC like this:</p>

<pre><code>kit.wallet().sendCoins(kit.peerGroup(), to, value);
</code></pre>

<p>How to achieve adding attachment? And how long can the attachment be? What if I want to send longer attachment, is here standardised way how to do that? Or I just make two TX and tell the people who I wants to see it, that one half is in TX1321... and other hald in TX3214... ?
<br>Thank you</p>

CC BY-SA 3.0
2016-02-06T15:46:13.217Z
Possible duplicate of [Insert data to transaction with OP\_RETURN](http://bitcoin.stackexchange.com/questions/31989/insert-data-to-transaction-with-op-return)
m1xolyd1an
CC BY-SA 3.0
2016-02-07T13:03:48.357Z
Hello, its not duplicate since link you gave me is not connected with BitcoinJ, I dont ask how to do that in general, I ask how to do that using given framework.
Wenza
<bitcoinj>
Send BTC with attachment using BitcoinJ
Wenza
# Send BTC with attachment using BitcoinJ

(Asked by: username_0 on 2016-02-06)

is there an example of how using BitcoinJ send BTC with an attachment? Lets say I want to write to blockchain "Vaclav Bilek Born 1991". 
If I understand it correctly, its just about sending minimum bitcoins possible with current minimum fee? 
Is here a way how to do this in BitcoinJ ?
Usual syntax of sending BTC allow me only to send BTC like this:
kit.wallet().sendCoins(kit.peerGroup(), to, value);

How to achieve adding attachment? And how long can the attachment be? What if I want to send longer attachment, is here standardised way how to do that? Or I just make two TX and tell the people who I wants to see it, that one half is in TX1321... and other hald in TX3214... ?
Thank you

**Tags:** bitcoinj

> **Comments:**
> **username_1**: Possible duplicate of [Insert data to transaction with OP\_RETURN](http://bitcoin.stackexchange.com/questions/31989/insert-data-to-transaction-with-op-return)  
> **username_0**: Hello, its not duplicate since link you gave me is not connected with BitcoinJ, I dont ask how to do that in general, I ask how to do that using given framework.  

---

## 0 answers

