1
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?
Wouldn't I know the fees after making the transaction? This won't allow me to check if the account has enough funds for paying the fees of how much he wants to send. – Cornezuelo del Centeno – 2015-02-25T15:41:47.787
fee = utxo value - amountToSend - changeAmount. So you are implicitly deciding the fee when you specify changeAmount. Not after making the transaction but before. – Oscar Guindzberg – 2015-02-25T16:06:35.720
Just to be clear, some other options to create transactions automatically set a reasonable fee. Here you have to choose the fee yourself. – Oscar Guindzberg – 2015-02-25T16:12:46.827