Hi,
I'm trying to understand transactions, so I'm playing with raw transactions in bitcoin-qt on testnet.
I'm not sure about a few things, even after reading
https://en.bitcoin.it/wiki/Transactions (I supposed I missed something)
After listunspent I have this transaction among others:
{
"txid" : "d8e5db107f5dbd3b74b454a4ba2566277894199a836d9982a255a61f2b10d0a8",
"vout" : 1,
"address" : "msmhYhrXtYAxerUCNfDAXu97xwaZ3JqxH6",
"scriptPubKey" : "76a914866b70364391e0ba5514cc30cb45f12291bc6cf788ac",
"amount" : 0.33900000,
"confirmations" : 65
},
I want to send 0.02 BTC, So I do:
createrawtransaction [{\"txid\":\"d8e5db107f5dbd3b74b454a4ba2566277894199a836d9982a255a61f2b10d0a8\",\"vout\":1}] {\"mxHgEstqwqYtVrDP3LsjS9WWAeWHQyatck\":0.02}
(mxHgEstqwqYtVrDP3LsjS9WWAeWHQyatck is another address of mine)
Is that OK?
Result is:
0100000001a8d0102b1fa655a282996d839a199478276625baa454b4743bbd5d7f10dbe5d801000
00000ffffffff0180841e00000000001976a914b7f7543883c4fd010aeb1ef63b5e888487dd08ae
88ac00000000
After decoding it at
https://blockchain.info/decode-tx I have (questions inside):
{
"lock_time":0,
"inputs":[
{
"prev_out":{
"index":1,
"hash":"d8e5db107f5dbd3b74b454a4ba2566277894199a836d9982a255a61f2b10d0a8"
},
"script":""
//question 0: This is scriptSig right? It's empty because I haven't signed the transfer yes? }
],
"vout_sz":1,
//question 1: What is it? "hash":"d231eab0bcee0ab3e2e2c08aa9f2eefa4f2e0d42ce225540fd2287ade62e0cdb",
"vin_sz":1,
//question 2: What is it? "out":[
{
"address":"1Hmiwpos8p7dijjmKmuMcEJBJeuaQzY3Mv",
//question 3: is this a receiving address created by the wallet? Or something else? "script_string":"OP_DUP OP_HASH160 b7f7543883c4fd010aeb1ef63b5e888487dd08ae OP_EQUALVERIFY OP_CHECKSIG",
//question 4: where did this b7f7543883... come from? "value":2000000,
"script":"76a914b7f7543883c4fd010aeb1ef63b5e888487dd08ae88ac"
}
],
"size":85,
"version":1
}
I will soon sign the transfer, but can you answer the questions above first please?
btw. should I ask these kind of questions here or in Development & Technical Discussion maybe?