0
i'm studying 'Mastering Bitcoin' and have a questions,
in this book, we can send coin to other wallet by createrawtransaction but there is no enough secure method.
we can find other's wallet addresses at https://www.blockchain.com. and unused coin value too.
for example - https://www.blockchain.com/en/btc/address/34bN2MQcqA4JpbEVRU9KBsvhXgSEHQrqBz
718ae88f0eb13d2f2d3bc74cbf18721a82739b80f1bfc0658ed699263fca76fd(Fee: 0.00002057 BTC - 3.11 sat/WU - 8.33 sat/B - Size: 247 bytes) 2019-01-14 04:57:04 34bN2MQcqA4JpbEVRU9KBsvhXgSEHQrqBz (1.13215222 BTC - Output) 32T5urH6uN4jhKenhW4LWM66WouzSCERbA - (Spent) 0.03213165 BTC 3LnZGyRAeCA3LAMBU2RSQn6dAkHw8rWquw - (Unspent) 1.1 BTC
than we can make fake transaction such as
$bitcoin-cli createrawtransaction '[{"txid" : "718ae88f0eb13d2f2d3bc74cbf18721a82739b80f1bfc0658ed699263fca76fd","vout":0}]' ' {"MY WALLET ADDRESS": 1.0, "3LnZGyRAeCA3LAMBU2RSQn6dAkHw8rWquw": fee}'
in conclusion, it doesn't works but i want know why this code not working
i think createrawtransaction working [{"txid ", "my wallet address", "another wallet address"}] so where is validation part on this command? – user10865941 – 2019-01-15T09:47:58.890
@user10865941: All other nodes validate the transaction - they check that you have provided proof that you posess the private key. – RedGrittyBrick – 2019-01-15T10:05:29.867
@user10865941 the output of
createrawtransactionis an unsigned bitcoin transaction. Next you would need to callsignrawtransactionto create a valid transaction, but your client will be unable to do so unless it has the relevant private keys. If you cannot produce a valid signature, then the network will not accept it as a valid transaction. – chytrik – 2019-01-16T01:41:14.487