Bitcoin Forum
November 19, 2024, 04:39:57 PM *
News: Check out the artwork 1Dq created to commemorate this forum's 15th anniversary
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: incomming transaction understanding  (Read 1403 times)
init1 (OP)
Jr. Member
*
Offline Offline

Activity: 43
Merit: 7


View Profile
October 09, 2015, 09:54:14 AM
 #1

Hello want to clarify a few details about working with incoming transaction.

Code:
"txs": [{
"txid": "ba3141908a631be74dea503c6f0cdbb364e0a28df9d53f0a027b4cdeef673e9d",
"version": 1,
"locktime": 378089,
"vin": [{
"txid": "4c2da413bbeef2f1dd56a3d7e67af11d63eddd97906dd70afdbbcebdf9a589e7",
"vout": 1,
"scriptSig": {
"asm": "3045022100b6ef68be26fa70016712b9f7e774d76c41cee9b3dee1b83be62b9f6156f35d0202205f1111cc91ff047fd2cf6cd825813d9dd650efd66a51cca90c2eae24d37aef4701 03b390ee0561e1acda348f3ae8049780e5cb29f6838a49f9b9cca6cd1ed5a34f61",
"hex": "483045022100b6ef68be26fa70016712b9f7e774d76c41cee9b3dee1b83be62b9f6156f35d0202205f1111cc91ff047fd2cf6cd825813d9dd650efd66a51cca90c2eae24d37aef47012103b390ee0561e1acda348f3ae8049780e5cb29f6838a49f9b9cca6cd1ed5a34f61"
},
"sequence": 4294967294,
"n": 0,
"addr": "17UBjxsavEfD5rV14HT67maGRUcEGBkthM",
"valueSat": 13303,
"value": 0.00013303,
"doubleSpentTxID": null
}],
"vout": [{
"value": "0.00001400",
"n": 0,
"scriptPubKey": {
"asm": "OP_HASH160 a287c1558aec11c6499dea08962cee0144be3eb5 OP_EQUAL",
"hex": "a914a287c1558aec11c6499dea08962cee0144be3eb587",
"reqSigs": 1,
"type": "scripthash",
"addresses": ["3GWQ24JVWjVCT4uDKnvNJEbYJSwySQM4d7"]
}
},
{
"value": "0.00011679",
"n": 1,
"scriptPubKey": {
"asm": "OP_DUP OP_HASH160 47809e6ee33a3a62574911244832cd0111707bb1 OP_EQUALVERIFY OP_CHECKSIG",
"hex": "76a91447809e6ee33a3a62574911244832cd0111707bb188ac",
"reqSigs": 1,
"type": "pubkeyhash",
"addresses": ["17X54DYtoHnvoDfU2C1GEVCeDGmYUQW4NQ"]
}
}],
"valueOut": 0.00013079,
"size": 224,
"valueIn": 0.00013303,
"fees": 0.00000224

Transaction has input and output

Input:
Code:
	"txs": [{
"txid": "ba3141908a631be74dea503c6f0cdbb364e0a28df9d53f0a027b4cdeef673e9d",
"version": 1,
"locktime": 378089,
"vin": [{
"txid": "4c2da413bbeef2f1dd56a3d7e67af11d63eddd97906dd70afdbbcebdf9a589e7",
"vout": 1,
"scriptSig": {
"asm": "3045022100b6ef68be26fa70016712b9f7e774d76c41cee9b3dee1b83be62b9f6156f35d0202205f1111cc91ff047fd2cf6cd825813d9dd650efd66a51cca90c2eae24d37aef4701 03b390ee0561e1acda348f3ae8049780e5cb29f6838a49f9b9cca6cd1ed5a34f61",
"hex": "483045022100b6ef68be26fa70016712b9f7e774d76c41cee9b3dee1b83be62b9f6156f35d0202205f1111cc91ff047fd2cf6cd825813d9dd650efd66a51cca90c2eae24d37aef47012103b390ee0561e1acda348f3ae8049780e5cb29f6838a49f9b9cca6cd1ed5a34f61"
},
"sequence": 4294967294,
"n": 0,
"addr": "17UBjxsavEfD5rV14HT67maGRUcEGBkthM",
"valueSat": 13303,
"value": 0.00013303,
"doubleSpentTxID": null
}],


1 input has two txID
"txid": "ba3141908a631be74dea503c6f0cdbb364e0a28df9d53f0a027b4cdeef673e9d"
and
"txid": "4c2da413bbeef2f1dd56a3d7e67af11d63eddd97906dd70afdbbcebdf9a589e7",

Which should I use if I want to spend coins with RawTX?

2 section vin has "vout": 1 can current section has more that 1 vout ? any examples ?
shorena
Copper Member
Legendary
*
Offline Offline

Activity: 1498
Merit: 1540


No I dont escrow anymore.


View Profile
October 09, 2015, 10:38:17 AM
 #2

Hello want to clarify a few details about working with incoming transaction.

-code-

1 input has two txID
"txid": "ba3141908a631be74dea503c6f0cdbb364e0a28df9d53f0a027b4cdeef673e9d"
and
"txid": "4c2da413bbeef2f1dd56a3d7e67af11d63eddd97906dd70afdbbcebdf9a589e7",

Only the vin part is the input used. The input is 4c2da413bbeef2f1dd56a3d7e67af11d63eddd97906dd70afdbbcebdf9a589e7 worth 0.00013303.

Which should I use if I want to spend coins with RawTX?

You should not use the input another TX uses unless you want to try to create a competing transaction. If you want to use the given TX you use its TX id ba3141908a631be74dea503c6f0cdbb364e0a28df9d53f0a027b4cdeef673e9d and specific which output (vout) you want to use.

2 section vin has "vout": 1 can current section has more that 1 vout ? any examples ?

Vout are the two outputs of the TX that can be used by other TX referencing this. Here its creating one (n=0) output worth 0.00001400 and one (n=1) worth 0.00011679.

Im not really here, its just your imagination.
init1 (OP)
Jr. Member
*
Offline Offline

Activity: 43
Merit: 7


View Profile
October 09, 2015, 10:50:56 AM
 #3

Thanks!

Which 'vout' need to use for create rawTx ? from "vin"  or "vout" section ?

Can "vin" section has a few "vout"  ?
shorena
Copper Member
Legendary
*
Offline Offline

Activity: 1498
Merit: 1540


No I dont escrow anymore.


View Profile
October 09, 2015, 10:59:34 AM
 #4

Thanks!

Which 'vout' need to use for create rawTx ? from "vin"  or "vout" section ?

vin are the inputs, they cant should not be used in order to avoid creating a conflicted TX. Vout are the outputs of this transactions. Which you can use depends on the private key(s) you own.

Can "vin" section has a few "vout"  ?

No, vin is the inputs section.

If you create a raw transaction you use something like this:

Code:
createrawtransaction
"[
{\"txid\":\"9ae64385748ca866ce4ec29824e517a49346bae05b4816706d5dc50a0bb9d5ac\",\"vout\":1},
{\"txid\":\"536ec9ad154d8b3491c7dcd2cfac88e8a7d49c3d3d6969c627ca7358ee5a555f\",\"vout\":1},
{\"txid\":\"540dce68990db42bf281a76dbce659483b5810a8413f0067a715c30e41c62e67\",\"vout\":1},
{\"txid\":\"770ac18545282258eac4e463900beb7601a9158b255da3a185f292b7b3c28698\",\"vout\":1},
{\"txid\":\"68281239401be7f1b5c26088ad8595fd5743ad5fd1da9c0a8b40054b1bf863a6\",\"vout\":0}
]"
"{\"16rKfUnTnSiFdqRA3j69XNdfKwSBNxF5wX\":0.22302697}"

This will create a TX that is using 5 inputs from 5 different TX and has one output to a pay to pubkey hash address (16rK...)

If we look at one of the inputs, e.g. 9ae64385748ca866ce4ec29824e517a49346bae05b4816706d5dc50a0bb9d5ac[1] you can see that is has two outputs. The person that made the above TX had the private key for 16rKfUnTnSiFdqRA3j69XNdfKwSBNxF5wX thus they could use the second output (caution! numbering starts at 0, thus vout is 1)

The TX 68281239401be7f1b5c26088ad8595fd5743ad5fd1da9c0a8b40054b1bf863a6[2] has 3 outputs, the above TX uses the first, thus vout is 0.

I know its complicated I found it easier to understand once I created a raw TX on the testnet. That way you are not at risk of losing anything.

Edit: found the finished TX from above, it was never confirmed though.

Code:
{
"txid" : "e9cc3e0caf3edfee58b7f74e2c3b48568ff60860e21f3a1e759029a4de24451c",
"version" : 1,
"locktime" : 0,
"vin" : [
{
"txid" : "9ae64385748ca866ce4ec29824e517a49346bae05b4816706d5dc50a0bb9d5ac",
"vout" : 1,
"scriptSig" : {
"asm" : "",
"hex" : ""
},
"sequence" : 4294967295
},
{
"txid" : "536ec9ad154d8b3491c7dcd2cfac88e8a7d49c3d3d6969c627ca7358ee5a555f",
"vout" : 1,
"scriptSig" : {
"asm" : "",
"hex" : ""
},
"sequence" : 4294967295
},
{
"txid" : "540dce68990db42bf281a76dbce659483b5810a8413f0067a715c30e41c62e67",
"vout" : 1,
"scriptSig" : {
"asm" : "",
"hex" : ""
},
"sequence" : 4294967295
},
{
"txid" : "770ac18545282258eac4e463900beb7601a9158b255da3a185f292b7b3c28698",
"vout" : 1,
"scriptSig" : {
"asm" : "",
"hex" : ""
},
"sequence" : 4294967295
},
{
"txid" : "68281239401be7f1b5c26088ad8595fd5743ad5fd1da9c0a8b40054b1bf863a6",
"vout" : 0,
"scriptSig" : {
"asm" : "",
"hex" : ""
},
"sequence" : 4294967295
},
{
"txid" : "cf3b1b6ab3183749ed70c17fec049900b54bd9e81f1b09eef238581eebe952ca",
"vout" : 0,
"scriptSig" : {
"asm" : "",
"hex" : ""
},
"sequence" : 4294967295
},
{
"txid" : "0b0a746ec7c9a17d970458db019df68b9c08938f6aa40018c3a882364aefe1a1",
"vout" : 0,
"scriptSig" : {
"asm" : "",
"hex" : ""
},
"sequence" : 4294967295
}
],
"vout" : [
{
"value" : 0.68984834,
"n" : 0,
"scriptPubKey" : {
"asm" : "OP_DUP OP_HASH160 402c972aa8932483ba216d3ce1f4ee5f2e35ea89 OP_EQUALVERIFY OP_CHECKSIG",
"hex" : "76a914402c972aa8932483ba216d3ce1f4ee5f2e35ea8988ac",
"reqSigs" : 1,
"type" : "pubkeyhash",
"addresses" : [
"16rKfUnTnSiFdqRA3j69XNdfKwSBNxF5wX"
]
}
}
]
}


[1] https://www.blocktrail.com/BTC/tx/9ae64385748ca866ce4ec29824e517a49346bae05b4816706d5dc50a0bb9d5ac
[2] https://www.blocktrail.com/BTC/tx/68281239401be7f1b5c26088ad8595fd5743ad5fd1da9c0a8b40054b1bf863a6

Im not really here, its just your imagination.
fbueller
Sr. Member
****
Offline Offline

Activity: 412
Merit: 287


View Profile
October 09, 2015, 10:30:28 PM
 #5

(You can have many outputs as well, when creating a transaction)

You'll come to know and fear malleability soon enough. Maybe your transaction had a doubleSpendId during the recent signature-s-flipping attack? I didn't see what you meant when you saw two transaction ID's.

Look at it this way - maybe your transaction confirms in a block, A, with the first TXID. But a malleated version (or even a double spend) one ends up in a different block with the same height, B.

Maybe bitcoind learns about block A, and triggers your script, but then Block B is built on by a miner, making it the best one to follow, reversing block A in favor of block B.

You need to be able to undo a transaction that goes through on your system. You have no guarantees about transaction ID's until they are confirmed by enough blocks. Otherwise, a malleated one might end up confirming (confusing, because your app saw a different TXID earlier), or a double spend, meaning you never got paid at all.

Bitwasp Developer.
init1 (OP)
Jr. Member
*
Offline Offline

Activity: 43
Merit: 7


View Profile
October 10, 2015, 12:50:36 PM
 #6

Thanks a lot for the explanation. It is rely interesting and cool!

Let me clarify my vision.

For example I have an address
Code:
https://blockexplorer.com/address/3GWQ24JVWjVCT4uDKnvNJEbYJSwySQM4d7
The address has 4 input tx

Code:
ba3141908a631be74dea503c6f0cdbb364e0a28df9d53f0a027b4cdeef673e9d
4c2da413bbeef2f1dd56a3d7e67af11d63eddd97906dd70afdbbcebdf9a589e7
3266dcc46b422d58b273ffd2acaf9dc2e72e26e3ec7fb82f25611341c7aea5d2
6ab8ac462b08b7883d82b69b2e8ae2e3008522ca50302f5c403dbfd16d9dc97b

So as you can see the address has positive balance.

Now, want to spend coins from the address 3GWQ24JVWjVCT4uDKnvNJEbYJSwySQM4d7

Used next command got tx info by address

https://blockexplorer.com/api/txs/?address=3GWQ24JVWjVCT4uDKnvNJEbYJSwySQM4d7


Code:
{
"pagesTotal": 1,
"txs": [{
"txid": "ba3141908a631be74dea503c6f0cdbb364e0a28df9d53f0a027b4cdeef673e9d",
"version": 1,
"locktime": 378089,
"vin": [{
"txid": "4c2da413bbeef2f1dd56a3d7e67af11d63eddd97906dd70afdbbcebdf9a589e7",
"vout": 1,
"scriptSig": {
"asm": "3045022100b6ef68be26fa70016712b9f7e774d76c41cee9b3dee1b83be62b9f6156f35d0202205f1111cc91ff047fd2cf6cd825813d9dd650efd66a51cca90c2eae24d37aef4701 03b390ee0561e1acda348f3ae8049780e5cb29f6838a49f9b9cca6cd1ed5a34f61",
"hex": "483045022100b6ef68be26fa70016712b9f7e774d76c41cee9b3dee1b83be62b9f6156f35d0202205f1111cc91ff047fd2cf6cd825813d9dd650efd66a51cca90c2eae24d37aef47012103b390ee0561e1acda348f3ae8049780e5cb29f6838a49f9b9cca6cd1ed5a34f61"
},
"sequence": 4294967294,
"n": 0,
"addr": "17UBjxsavEfD5rV14HT67maGRUcEGBkthM",
"valueSat": 13303,
"value": 0.00013303,
"doubleSpentTxID": null
}],
"vout": [{
"value": "0.00001400",
"n": 0,
"scriptPubKey": {
"asm": "OP_HASH160 a287c1558aec11c6499dea08962cee0144be3eb5 OP_EQUAL",
"hex": "a914a287c1558aec11c6499dea08962cee0144be3eb587",
"reqSigs": 1,
"type": "scripthash",
"addresses": ["3GWQ24JVWjVCT4uDKnvNJEbYJSwySQM4d7"]
}
},
{
"value": "0.00011679",
"n": 1,
"scriptPubKey": {
"asm": "OP_DUP OP_HASH160 47809e6ee33a3a62574911244832cd0111707bb1 OP_EQUALVERIFY OP_CHECKSIG",
"hex": "76a91447809e6ee33a3a62574911244832cd0111707bb188ac",
"reqSigs": 1,
"type": "pubkeyhash",
"addresses": ["17X54DYtoHnvoDfU2C1GEVCeDGmYUQW4NQ"]
}
}],
"valueOut": 0.00013079,
"size": 224,
"valueIn": 0.00013303,
"fees": 0.00000224
},
{
"txid": "4c2da413bbeef2f1dd56a3d7e67af11d63eddd97906dd70afdbbcebdf9a589e7",
"version": 1,
"locktime": 378096,
"vin": [{
"txid": "3266dcc46b422d58b273ffd2acaf9dc2e72e26e3ec7fb82f25611341c7aea5d2",
"vout": 1,
"scriptSig": {
"asm": "304402204e920f77641fab912bcd360450cd405a991c9c1b6fe0a5783ad56b7031673f6802200bf846877437e259e0afb5eee953ce671af7521967f34d90c3ffd7075546f3c301 02caf284d156a32fbd22c6a6ea47e18c2c1e1075b808968a5a4af0afd3ea907987",
"hex": "47304402204e920f77641fab912bcd360450cd405a991c9c1b6fe0a5783ad56b7031673f6802200bf846877437e259e0afb5eee953ce671af7521967f34d90c3ffd7075546f3c3012102caf284d156a32fbd22c6a6ea47e18c2c1e1075b808968a5a4af0afd3ea907987"
},
"sequence": 4294967294,
"n": 0,
"addr": "1A9E3ck8XzknXG3X9bcsMBhsiUrLDE7DyC",
"valueSat": 14627,
"value": 0.00014627,
"doubleSpentTxID": null
}],
"vout": [{
"value": "0.00001100",
"n": 0,
"scriptPubKey": {
"asm": "OP_HASH160 a287c1558aec11c6499dea08962cee0144be3eb5 OP_EQUAL",
"hex": "a914a287c1558aec11c6499dea08962cee0144be3eb587",
"reqSigs": 1,
"type": "scripthash",
"addresses": ["3GWQ24JVWjVCT4uDKnvNJEbYJSwySQM4d7"]
}
},
{
"value": "0.00013303",
"n": 1,
"scriptPubKey": {
"asm": "OP_DUP OP_HASH160 46f4f39bb890190a822610020e86f26dd8e6c6ce OP_EQUALVERIFY OP_CHECKSIG",
"hex": "76a91446f4f39bb890190a822610020e86f26dd8e6c6ce88ac",
"reqSigs": 1,
"type": "pubkeyhash",
"addresses": ["17UBjxsavEfD5rV14HT67maGRUcEGBkthM"]
},
"spentTxId": "ba3141908a631be74dea503c6f0cdbb364e0a28df9d53f0a027b4cdeef673e9d",
"spentIndex": 0,
"spentTs": 1444374903
}],
"valueOut": 0.00014403,
"size": 223,
"valueIn": 0.00014627,
"fees": 0.00000224
},
{
"txid": "3266dcc46b422d58b273ffd2acaf9dc2e72e26e3ec7fb82f25611341c7aea5d2",
"version": 1,
"locktime": 378096,
"vin": [{
"txid": "6ab8ac462b08b7883d82b69b2e8ae2e3008522ca50302f5c403dbfd16d9dc97b",
"vout": 1,
"scriptSig": {
"asm": "3044022010111b6ba044e80e162929d7969f910fd0924594fd6ca251d6b0623ee4d04cf2022062418189e9fad2381b46624f7e6c8a239668b60f7501a124057ed2e01c04001901 0261095661da1a26d97ddef74e459562705094d0ccc124bff528cb420188251157",
"hex": "473044022010111b6ba044e80e162929d7969f910fd0924594fd6ca251d6b0623ee4d04cf2022062418189e9fad2381b46624f7e6c8a239668b60f7501a124057ed2e01c04001901210261095661da1a26d97ddef74e459562705094d0ccc124bff528cb420188251157"
},
"sequence": 4294967294,
"n": 0,
"addr": "1HwMhJTNhrPSv74oCe8g5otCeidEaHPm9p",
"valueSat": 15851,
"value": 0.00015851,
"doubleSpentTxID": null
}],
"vout": [{
"value": "0.00001000",
"n": 0,
"scriptPubKey": {
"asm": "OP_HASH160 a287c1558aec11c6499dea08962cee0144be3eb5 OP_EQUAL",
"hex": "a914a287c1558aec11c6499dea08962cee0144be3eb587",
"reqSigs": 1,
"type": "scripthash",
"addresses": ["3GWQ24JVWjVCT4uDKnvNJEbYJSwySQM4d7"]
}
},
{
"value": "0.00014627",
"n": 1,
"scriptPubKey": {
"asm": "OP_DUP OP_HASH160 64475968d9f6017d8c8066fb7e211f0323f6fb9a OP_EQUALVERIFY OP_CHECKSIG",
"hex": "76a91464475968d9f6017d8c8066fb7e211f0323f6fb9a88ac",
"reqSigs": 1,
"type": "pubkeyhash",
"addresses": ["1A9E3ck8XzknXG3X9bcsMBhsiUrLDE7DyC"]
},
"spentTxId": "4c2da413bbeef2f1dd56a3d7e67af11d63eddd97906dd70afdbbcebdf9a589e7",
"spentIndex": 0,
"spentTs": 1444374808
}],
"valueOut": 0.00015627,
"size": 223,
"valueIn": 0.00015851,
"fees": 0.00000224
},
{
"txid": "6ab8ac462b08b7883d82b69b2e8ae2e3008522ca50302f5c403dbfd16d9dc97b",
"version": 1,
"locktime": 378096,
"vin": [{
"txid": "8ff72901bbc42bb9409e0a81f1dc98b31be51cc33c5acb46954964ac30cbbd90",
"vout": 1,
"scriptSig": {
"asm": "304502210083e493b2514b9ecfbb00c05773270b2e8cd902e2863f0edcdefc2790c3670c3e02201a558bda95ec9b6a353732ece8976bf5757f45c96506c79e695ba71823ae94a101 02fcb25d983bb0611e29d7bac1f16b15c7cf44e091fc8d96dae7ecf395bdbd40dc",
"hex": "48304502210083e493b2514b9ecfbb00c05773270b2e8cd902e2863f0edcdefc2790c3670c3e02201a558bda95ec9b6a353732ece8976bf5757f45c96506c79e695ba71823ae94a1012102fcb25d983bb0611e29d7bac1f16b15c7cf44e091fc8d96dae7ecf395bdbd40dc"
},
"sequence": 4294967294,
"n": 0,
"addr": "1749kF8e5X8YRXuqZZa1YJnNfhjEj4aucz",
"valueSat": 16775,
"value": 0.00016775,
"doubleSpentTxID": null
}],
"vout": [{
"value": "0.00000700",
"n": 0,
"scriptPubKey": {
"asm": "OP_HASH160 a287c1558aec11c6499dea08962cee0144be3eb5 OP_EQUAL",
"hex": "a914a287c1558aec11c6499dea08962cee0144be3eb587",
"reqSigs": 1,
"type": "scripthash",
"addresses": ["3GWQ24JVWjVCT4uDKnvNJEbYJSwySQM4d7"]
}
},
{
"value": "0.00015851",
"n": 1,
"scriptPubKey": {
"asm": "OP_DUP OP_HASH160 b9c9bfe9e5b8656482d8c3fdaa029d119f8c5cf5 OP_EQUALVERIFY OP_CHECKSIG",
"hex": "76a914b9c9bfe9e5b8656482d8c3fdaa029d119f8c5cf588ac",
"reqSigs": 1,
"type": "pubkeyhash",
"addresses": ["1HwMhJTNhrPSv74oCe8g5otCeidEaHPm9p"]
},
"spentTxId": "3266dcc46b422d58b273ffd2acaf9dc2e72e26e3ec7fb82f25611341c7aea5d2",
"spentIndex": 0,
"spentTs": 1444374773
}],
"valueOut": 0.00016551,
"size": 224,
"valueIn": 0.00016775,
"fees": 0.00000224
}]
}


Also I can give all unspent outputs by address like this

https://blockexplorer.com/api/addrs/3GWQ24JVWjVCT4uDKnvNJEbYJSwySQM4d7/utxo?noCache=1

Code:
[{
"address": "3GWQ24JVWjVCT4uDKnvNJEbYJSwySQM4d7",
"txid": "ba3141908a631be74dea503c6f0cdbb364e0a28df9d53f0a027b4cdeef673e9d",
"vout": 0,
"ts": 1444374903,
"scriptPubKey": "a914a287c1558aec11c6499dea08962cee0144be3eb587",
"amount": 0.000014,
"confirmationsFromCache": false
},
{
"address": "3GWQ24JVWjVCT4uDKnvNJEbYJSwySQM4d7",
"txid": "4c2da413bbeef2f1dd56a3d7e67af11d63eddd97906dd70afdbbcebdf9a589e7",
"vout": 0,
"ts": 1444374808,
"scriptPubKey": "a914a287c1558aec11c6499dea08962cee0144be3eb587",
"amount": 0.000011,
"confirmationsFromCache": false
},
{
"address": "3GWQ24JVWjVCT4uDKnvNJEbYJSwySQM4d7",
"txid": "3266dcc46b422d58b273ffd2acaf9dc2e72e26e3ec7fb82f25611341c7aea5d2",
"vout": 0,
"ts": 1444374773,
"scriptPubKey": "a914a287c1558aec11c6499dea08962cee0144be3eb587",
"amount": 0.00001,
"confirmationsFromCache": false
},
{
"address": "3GWQ24JVWjVCT4uDKnvNJEbYJSwySQM4d7",
"txid": "6ab8ac462b08b7883d82b69b2e8ae2e3008522ca50302f5c403dbfd16d9dc97b",
"vout": 0,
"ts": 1444374654,
"scriptPubKey": "a914a287c1558aec11c6499dea08962cee0144be3eb587",
"amount": 0.000007,
"confirmationsFromCache": false
}]

So in my vision if I want to spend all coins from the address 3GWQ24JVWjVCT4uDKnvNJEbYJSwySQM4d7

I should prepare rawTx with ALL Unspent Outputs is it correct ? Any cases how can I simplify it?

createrawtransaction
Code:
"[
{\"txid\":\"ba3141908a631be74dea503c6f0cdbb364e0a28df9d53f0a027b4cdeef673e9d\",\"vout\":1},
{\"txid\":\"4c2da413bbeef2f1dd56a3d7e67af11d63eddd97906dd70afdbbcebdf9a589e7\",\"vout\":1},
{\"txid\":\"3266dcc46b422d58b273ffd2acaf9dc2e72e26e3ec7fb82f25611341c7aea5d2\",\"vout\":1},
{\"txid\":\"6ab8ac462b08b7883d82b69b2e8ae2e3008522ca50302f5c403dbfd16d9dc97b\",\"vout\":1},
]"
"{\"16rKfUnTnSiFdqRA3j69XNdfKwSBNxF5wX\":0.22302697}"

Thanks!
Timelord2067
Legendary
*
Offline Offline

Activity: 3864
Merit: 2247


💲🏎️💨🚓


View Profile
January 18, 2016, 12:58:27 PM
 #7

In February 2015 zDavidR started a thread entitled

Bitcoin Forum > Bitcoin > Technical Support > How do I double spend?

https://bitcointalk.org/index.php?topic=963933.0

zDavidR 's wallet 16rKfUnTnSiFdqRA3j69XNdfKwSBNxF5wX


 turns up some nine months later here when shorena uses it as an example in a discussion started by init1 who only registered in June 2015.

I'm just wondering how shorena and or init1 came up with that specific wallet address?

Thanks for reading.

shorena
Copper Member
Legendary
*
Offline Offline

Activity: 1498
Merit: 1540


No I dont escrow anymore.


View Profile
January 18, 2016, 01:25:30 PM
 #8

In February 2015 zDavidR started a thread entitled

Bitcoin Forum > Bitcoin > Technical Support > How do I double spend?

https://bitcointalk.org/index.php?topic=963933.0

zDavidR 's wallet 16rKfUnTnSiFdqRA3j69XNdfKwSBNxF5wX


 turns up some nine months later here when shorena uses it as an example in a discussion started by init1 who only registered in June 2015.

I'm just wondering how shorena and or init1 came up with that specific wallet address?

Thanks for reading.

You are creepy.

Im not really here, its just your imagination.
Timelord2067
Legendary
*
Offline Offline

Activity: 3864
Merit: 2247


💲🏎️💨🚓


View Profile
January 18, 2016, 01:28:15 PM
 #9



You are creepy.

Hey thanks for that, now teach me something.

shorena
Copper Member
Legendary
*
Offline Offline

Activity: 1498
Merit: 1540


No I dont escrow anymore.


View Profile
January 18, 2016, 01:34:41 PM
 #10



You are creepy.

Hey thanks for that, now teach me something.

I wrote the raw, unsigned TX for zDavidR (see the flashy red warning at the end of my post). I keep all raw TX I ever wrote on disk for easy reference. I picked that one as example here. Not sure why, probably because it was the first file with different values for vout I found.

Im not really here, its just your imagination.
Timelord2067
Legendary
*
Offline Offline

Activity: 3864
Merit: 2247


💲🏎️💨🚓


View Profile
January 18, 2016, 02:21:00 PM
 #11



You are creepy.

Hey thanks for that, now teach me something.

I wrote the raw, unsigned TX for zDavidR (see the flashy red warning at the end of my post). I keep all raw TX I ever wrote on disk for easy reference. I picked that one as example here. Not sure why, probably because it was the first file with different values for vout I found.

No problems - thanks for the info, much appreciated.

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!