When working directly with bitcoind, I can getRawTransaction for any transaction in the network. The vout has multiple outgoing addresses usually which contain a scriptPubKey. The scriptPubKey has a field called addresses, which is an array. I've only seen transactions with one address in this field. Is it possible to have more, if so, what does that mean?
1 Answer
Any of the addresses in that array can spend that output. Multisig transactions will give you multiple addresses there.
-
So, if it's a 1 of 3 raw multisig, then it will list all three addresses? And if it's a 2 of 3, then it will list no addresses because no single address can spend the UTXO? Commented Oct 16, 2014 at 19:00
-
Nope, I just found this transaction, which disproves my theory. If it's an n of m raw multisig output script, all m addresses are given in the scriptPubKey array. Commented Oct 16, 2014 at 22:17