2

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 1

5

Any of the addresses in that array can spend that output. Multisig transactions will give you multiple addresses there.

2
  • 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?
    – morsecoder
    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.
    – morsecoder
    Oct 16, 2014 at 22:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.