<p>This will be possible using the 'raw transaction interface' that was added recently and scheduled to be part of the 0.7.0 release.</p>

<p>With <code>listunspent</code> you can request a list of available coins sent to a particular (wallet) address, and with <code>createrawtransaction</code> you can build a transaction that consumes specified coins. Finally, <code>sendrawtransaction</code> can be used to broadcast a prepared raw transaction to the network.</p>

CC BY-SA 3.0
2012-08-29T04:57:20.747Z
Any idea of when 0.7.0 will be released?
Sebastian Castro
CC BY-SA 3.0
2012-08-29T13:47:09.470Z
0.7.0rc1 was released yesterday, so... soon.
Pieter Wuille
CC BY-SA 3.0
2012-08-28T16:20:53.740Z
2012-08-28T16:20:53.740Z
Pieter Wuille
<p>I would want to force bitcoind to include a specific transaction as an input of another transaction. This is so as to prevent people front wanting to launch a double-spend attack on the website. The method is similar to the one used by <a href="http://www.satoshidice.com/bits.php" rel="nofollow">SatoshiDice</a>. How can I accomplish this task with the standard client?</p>

<transactions><bitcoind><doublespend><api>
How to force bitcoind to include a specific transaction as an input of another transaction?
ThePiachu
# How to force bitcoind to include a specific transaction as an input of another transaction?

(Asked by: username_0 on 2012-08-28)

I would want to force bitcoind to include a specific transaction as an input of another transaction. This is so as to prevent people front wanting to launch a double-spend attack on the website. The method is similar to the one used by [SatoshiDice](http://www.satoshidice.com/bits.php). How can I accomplish this task with the standard client?

**Tags:** transactions, bitcoind, doublespend, api


---

## 1 answers

### Answer by username_1 on 2012-08-28. Score: 6

This will be possible using the 'raw transaction interface' that was added recently and scheduled to be part of the 0.7.0 release.

With `listunspent` you can request a list of available coins sent to a particular (wallet) address, and with `createrawtransaction` you can build a transaction that consumes specified coins. Finally, `sendrawtransaction` can be used to broadcast a prepared raw transaction to the network.

> **Comments:**
> **username_2**: Any idea of when 0.7.0 will be released?  
> **username_1**: 0.7.0rc1 was released yesterday, so... soon.  

---

