another day of scripting...

chaeplin

Active Member
Core Developer
Mar 29, 2014
749
356
133
Code:
[email protected] :~/scripts> darkcoind getrawtransaction 26d82bf82ed5c0205dcb53c17c3efb6ad8997148eca36fc3e3e11ce3d07c7e73 1
{
    "hex" : "02000000010000000000000000000000000000000000000000000000000000000000000000ffffffff10038a6a016800000000000000000000000000000002202ff605000000001976a914c0167cc7694e50780c4ffbadd111ae94aa97ad1488ac80bcd817000000001976a91464741f6f29520972e8d2faf6233bd042c9e06e0e88ac00000000",
    "txid" : "26d82bf82ed5c0205dcb53c17c3efb6ad8997148eca36fc3e3e11ce3d07c7e73",
    "version" : 2,
    "locktime" : 0,
    "vin" : [
        {
            "coinbase" : "038a6a01680000000000000000000000",
            "sequence" : 0
        }
    ],
    "vout" : [
        {
            "value" : 1.00020000,
            "n" : 0,
            "scriptPubKey" : {
                "asm" : "OP_DUP OP_HASH160 c0167cc7694e50780c4ffbadd111ae94aa97ad14 OP_EQUALVERIFY OP_CHECKSIG",
                "hex" : "76a914c0167cc7694e50780c4ffbadd111ae94aa97ad1488ac",
                "reqSigs" : 1,
                "type" : "pubkeyhash",
                "addresses" : [
                    "XtCWWYAMbaPZkAuArr5HD31Z2SCa7aWiyh"
                ]
            }
        },
        {
            "value" : 4.00080000,
            "n" : 1,
            "scriptPubKey" : {
                "asm" : "OP_DUP OP_HASH160 64741f6f29520972e8d2faf6233bd042c9e06e0e OP_EQUALVERIFY OP_CHECKSIG",
                "hex" : "76a91464741f6f29520972e8d2faf6233bd042c9e06e0e88ac",
                "reqSigs" : 1,
                "type" : "pubkeyhash",
                "addresses" : [
                    "XjqzWnjnEf8YVeoNcC7m1FwCuQbHa3rJMW"
                ]
            }
        }
    ],
    "blockhash" : "000000000006bace21fae186cca8a822beaef120f76118787b891094bde3d493",
    "confirmations" : 323,
    "time" : 1403911148,
    "blocktime" : 1403911148
}
check vout[0] and vout[1].
I used vout[0]['scriptPubKey']['addresses'] as block founder of pool address.

Today I have found a block vout[0] and vout[1] switched.
http://simpledrk.com/pool_stats
http://chainz.cryptoid.info/drk/blo...6cca8a822beaef120f76118787b891094bde3d493.htm

all address detection codes of my scripts are achanged :D LOL