Bitcoin Forum
May 22, 2024, 01:59:14 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: json-rpc: createrawtransaction  (Read 1067 times)
orz.dk (OP)
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





dserrano5
Legendary
*
Offline Offline

Activity: 1974
Merit: 1029



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:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!