Bitcoin Forum
May 21, 2024, 06:52:49 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: In what situation vout[N]->scriptPubKey->addresses can be more than one address?  (Read 1210 times)
bit_kevin (OP)
Member
**
Offline Offline

Activity: 64
Merit: 10


btc.com


View Profile WWW
June 10, 2013, 04:37:14 PM
 #1

why vout[N]->scriptPubKey->addresses set as an array, I saw most of them just one address in it.

In what situation vout[N]->scriptPubKey->addresses can be more than one address?

example raw Tx vout:
Code:
    "vout" : [
        {
            "value" : 1.01839070,
            "n" : 0,
            "scriptPubKey" : {
                "asm" : "OP_DUP OP_HASH160 291921b5e6a69b8fd69e3028781788bb25253e4a OP_EQUALVERIFY OP_CHECKSIG",
                "hex" : "76a914291921b5e6a69b8fd69e3028781788bb25253e4a88ac",
                "reqSigs" : 1,
                "type" : "pubkeyhash",
                "addresses" : [
                    "14kJp3c6FVRQgNHpjsiisuKWqPqj58FB9p"
                ]
            }
        },
        {
            "value" : 50.00000000,
            "n" : 1,
            "scriptPubKey" : {
                "asm" : "OP_DUP OP_HASH160 9f1c05f9200f65712601f6c74f9d22b31aa8d12b OP_EQUALVERIFY OP_CHECKSIG",
                "hex" : "76a9149f1c05f9200f65712601f6c74f9d22b31aa8d12b88ac",
                "reqSigs" : 1,
                "type" : "pubkeyhash",
                "addresses" : [
                    "1FWJ1bb2JiGZqKVnDZzyZoPqqXebpyWUKW"
                ]
            }
        }
    ],


grue
Legendary
*
Offline Offline

Activity: 2058
Merit: 1431



View Profile
June 10, 2013, 04:48:46 PM
 #2

why vout[N]->scriptPubKey->addresses set as an array, I saw most of them just one address in it.

In what situation vout[N]->scriptPubKey->addresses can be more than one address?
multisig/multiaddress transactions.

It is pitch black. You are likely to be eaten by a grue.

Adblock for annoying signature ads | Enhanced Merit UI
bit_kevin (OP)
Member
**
Offline Offline

Activity: 64
Merit: 10


btc.com


View Profile WWW
June 10, 2013, 04:55:59 PM
 #3

why vout[N]->scriptPubKey->addresses set as an array, I saw most of them just one address in it.

In what situation vout[N]->scriptPubKey->addresses can be more than one address?
multisig/multiaddress transactions.

could you please show me an exist Tx id like this?
kjj
Legendary
*
Offline Offline

Activity: 1302
Merit: 1025



View Profile
June 10, 2013, 07:51:27 PM
 #4

I suspect that there are some in the chain, but I'm not sure how to search for them.  These days, we (generally) use P2SH instead of plain multisig.  In P2SH, the address shown is the hash of the redemption script, so just one address is shown (starting with a 3).

17Np17BSrpnHCZ2pgtiMNnhjnsWJ2TMqq8
I routinely ignore posters with paid advertising in their sigs.  You should too.
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!