Bitcoin Forum
September 27, 2018, 11:18:08 PM *
News: ♦♦ New info! Bitcoin Core users absolutely must upgrade to previously-announced 0.16.3 [Torrent]. All Bitcoin users should temporarily trust confirmations slightly less. More info.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: json-rpc: createrawtransaction  (Read 1003 times)
orz.dk
Newbie
*
Offline Offline

Activity: 30
Merit: 0



View Profile WWW
June 01, 2013, 04:55:15 PM
 #1

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





Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
dserrano5
Legendary
*
Offline Offline

Activity: 1848
Merit: 1000



View Profile
June 03, 2013, 06:51:07 AM
 #2

Yes to all. You can play with createrawtransaction in testnet to avoid the risk of losing funds.

Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!