You'll notice that this address has received only 1 transaction. The transaction ID where the bitcoins were received (where the output was created) was:
8dc0aa6a5022868490245fd4b10c47bccdaa0358cb24ed5ad3d09c99fac39f0e
If you look at that transaction you can see the outputs:
https://blockchain.info/rawtx/8dc0aa6a5022868490245fd4b10c47bccdaa0358cb24ed5ad3d09c99fac39f0e?format=json{
"ver":1,
"inputs":[
{
"sequence":4294967295,
"prev_out":{
"spent":true,
"tx_index":114922410,
"type":0,
"addr":"17foftVDmgZr5pawBG9isJJPjnKbSKyM2t",
"value":4284390417,
"n":1,
"script":"76a91449278511d5dd5fac30738bfea348822cb690277588ac"
},
"script":"47304402204c187e6420ab27127f35e007c537ac60a431a767ccce67d35e6741dc0606beb00220602b8dac48444943b63793370c4ab91c444cfe09e27d433ab14596f6febcf3520141047d53cd75d37054ba2b3212f9b0251323e618480b3cd247c5b36e1546b87b8e702095803a5ce683e0b1ecddc02c1c5ce4c19fda589c625c901787bf66e9fa0844"
}
],
"block_height":387184,
"relayed_by":"127.0.0.1",
"out":[
{
"spent":false,
"tx_index":114922761,
"type":0,
"addr":"1g89wGhWxuQGGqGxVG6dZMzTTSVMWqWj6",
"value":4999000,
"n":0,
"script":"76a914076631c59ba595332917d7b6705006345233e46388ac"
},
{
"spent":true,
"tx_index":114922761,
"type":0,
"addr":"17foftVDmgZr5pawBG9isJJPjnKbSKyM2t",
"value":4279381417,
"n":1,
"script":"76a91449278511d5dd5fac30738bfea348822cb690277588ac"
}
],
"lock_time":0,
"size":257,
"double_spend":false,
"time":1449506781,
"tx_index":114922761,
"vin_sz":1,
"hash":"8dc0aa6a5022868490245fd4b10c47bccdaa0358cb24ed5ad3d09c99fac39f0e",
"vout_sz":2
}
Notice from that JSON output that there are two outputs ("out" array with two array elements). The first output of the array is the one sent to "addr" 1g89wGhWxuQGGqGxVG6dZMzTTSVMWqWj6. The index is indicated in the blockchain.info web interface in the array element with the "n" label. So in this case, it is array element 0.
{
"spent":false,
"tx_index":114922761,
"type":0,
"addr":"1g89wGhWxuQGGqGxVG6dZMzTTSVMWqWj6",
"value":4999000,
"n":0, "script":"76a914076631c59ba595332917d7b6705006345233e46388ac"
},
How you determine this in your software will depend what interface you are using to access the data. There are several services with their own API that you could use, or you could just use the Bitcoin Core interface.
If you are using Bitcoin Core, then you can use "listunspent" to get the list of all unspent outputs that the wallet has full control over. You could also use "getrawtransaction" and/or "decoderawtransaction" to get information about specific transactions if you know the transactionID.
after done with CreateRawTransaction, is the next steps :
> SignRawTransaction > SendRawTransaction
or just
> SendRawTransaction ?
An unsigned transaction is not a valid transaction. All nodes will reject it, and miners will not confirm it. Therefore, you will need to use "signrawtransaction" before you can "sendrawtransaction"