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

CC BY-SA 3.0
2014-10-16T19:00:35.367Z
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
CC BY-SA 3.0
2014-10-16T22:17:58.223Z
Nope, I just found [this transaction](https://blockchain.info/tx/56214420a7c4dcc4832944298d169a75e93acf9721f00656b2ee0e4d194f9970), 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
CC BY-SA 3.0
2012-09-14T16:24:37.750Z
2012-09-14T16:24:37.750Z
theymos
<p>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? </p>

<bitcoind><address><json-rpc><script>
Can a scriptPubKey have multiple addresses?
Shamoon
# Can a scriptPubKey have multiple addresses?

(Asked by: username_0 on 2012-09-13)

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?

**Tags:** bitcoind, address, json-rpc, script


---

## 1 answers

### Answer by username_1 on 2012-09-14. Score: 5 | Accepted answer

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

> **Comments:**
> **username_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?  
> **username_2**: Nope, I just found [this transaction](https://blockchain.info/tx/56214420a7c4dcc4832944298d169a75e93acf9721f00656b2ee0e4d194f9970), which disproves my theory. If it's an n of m raw multisig output script, all m addresses are given in the scriptPubKey array.  

---

