Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: orz.dk on June 01, 2013, 04:55:15 PM



Title: json-rpc: createrawtransaction
Post by: orz.dk on June 01, 2013, 04:55:15 PM
Hi,

I need somebody to verify that i got this right :

- When composing a createrawtransaction, it's the unspent transactions in the wallet (> listunspent) that are used for input ?

- Every unspent trx input i use for my trx will be used in it's entirety ?

- If the sum of the unspents i use,  is higher than the amount i want to send, i have to add a change address of my own, and direct (sum(unspents_used_in_rawtrx) - amount_i_want_to_Send) to that address in the same trx ?

- Any amount of sum(unspents_used_in_rawtrx) that are not sent to neither the recipient, nor my change address, will be fees ?

Thanks !

/orz.dk







Title: Re: json-rpc: createrawtransaction
Post by: dserrano5 on June 03, 2013, 06:51:07 AM
Yes to all. You can play with createrawtransaction in testnet to avoid the risk of losing funds.