user24480: I'm programming the back-end for an ecommerce solution, Bitcoind API gives me one way of sending money to a bitcoin address: sendfrom <fromaccount> <tobitcoinaddress> <amount>
If I understood well, this will transfer money from one account to an address, but I don't see any way of sending from address to address. I didn't implemented accounts on my backend system, and don't want to do it as it's an aditional layer of complexity that I don't want to deal with right now.
So, I supose this will grab money from whatever address/addresses asociated to the account and send them to the bitcoin address provided. Any way of doing what I want to do?

user24487: To find the transaction outputs you can spend
listunspent 0 99999999999 "[\"addressYouWantToSpend\"]"

Then create the tx
createrawtransaction "[{\"txid\":\"txIdToSpend\",\"vout\":n}]" "{\"destinationAddress\":amountToSend, \"changeAddress\":changeAmount}"

Then sign the tx
signrawtransaction <hexStringProvidedBycreaterawtransaction>

Then publish the tx
sendrawtransaction <hexStringProvidedBysignrawtransaction>


24480: <p>I'm programming the back-end for an ecommerce solution, Bitcoind API gives me one way of sending money to a bitcoin address: <code>sendfrom &lt;fromaccount&gt; &lt;tobitcoinaddress&gt; &lt;amount&gt;</code></p>

<p>If I understood well, this will transfer money from one account to an address, but I don't see any way of sending from address to address. I didn't implemented accounts on my backend system, and don't want to do it as it's an aditional layer of complexity that I don't want to deal with right now.</p>

<p>So, I supose this will grab money from whatever address/addresses asociated to the account and send them to the bitcoin address provided. Any way of doing what I want to do?</p>
 24487: <p>To find the transaction outputs you can spend</p>

<pre><code>listunspent 0 99999999999 "[\"addressYouWantToSpend\"]"
</code></pre>

<p>Then create the tx</p>

<pre><code>createrawtransaction "[{\"txid\":\"txIdToSpend\",\"vout\":n}]" "{\"destinationAddress\":amountToSend, \"changeAddress\":changeAmount}"
</code></pre>

<p>Then sign the tx</p>

<pre><code>signrawtransaction &lt;hexStringProvidedBycreaterawtransaction&gt;
</code></pre>

<p>Then publish the tx</p>

<pre><code>sendrawtransaction &lt;hexStringProvidedBysignrawtransaction&gt;
</code></pre>
