Author

Topic: addresses in vout in rawtransactions (Read 1047 times)

sr. member
Activity: 293
Merit: 250
January 08, 2013, 09:41:20 AM
#3
that make sense, tks for the information
legendary
Activity: 1120
Merit: 1152
January 08, 2013, 09:14:27 AM
#2
It's for multisig transactions where more than one address can/is required to redeem. From tx 3d61531833ed89bd923956116c54d79bee9b0699e9c4357ec8afb096b6f31b9f:

Code:
"vout" : [
    {   
        "value" : 1.00899999,
        "n" : 0,
        "scriptPubKey" : {
            "asm" : "1 037953dbf08030f67352134992643d033417eaa6fcfb770c038f364ff40d761588 0030d215e96cc8d74a0eb52ea71f26ee25b9c023c81ed39b4b5d1115a45492883a 2 OP_CHECKMULTISIG",
            "hex" : "5121037953dbf08030f67352134992643d033417eaa6fcfb770c038f364ff40d761588210030d215e96cc8d74a0eb52ea71f26ee25b9c023c81ed39b4b5d1115a45492883a52ae",
            "reqSigs" : 1,
            "type" : "multisig",
            "addresses" : [
                "13MH4zmU4UT4Ct6BhoRFGjigC8gN9a9FNn",
                "1EqgDC13m2734Ff6hZa2LPvw1mGo77WE7B"
            ]   
        }   
    }   
]
sr. member
Activity: 293
Merit: 250
January 08, 2013, 09:11:40 AM
#1
i couldnt find any related post about this. i'm kinda new in bitcoin especially in raw transactions.

when we decode a raw transaction we get something like this:

"vout" : [
{
"value" : 0.01000111,
"n" : 0,
"scriptPubKey" : {
"asm" : "OP_DUP OP_HASH160 06826dc0a355ba9018b5fd7dd1d97a7a6339d19a OP_EQUALVERIFY OP_CHECKSIG",
"hex" : "76a91406826dc0a355ba9018b5fd7dd1d97a7a6339d19a88ac",
"reqSigs" : 1,
"type" : "pubkeyhash",
"addresses" : [
"1bRJVr9ZTF4oL8b9TB6YcCEjeVpv49qWm"
]
}
},...


as "addresses" is a json array, is there a way to specify multiple addresses in a single output in a transaction? if yes, why is this possible?

tks in advance.
Jump to: