1
Vout contains a list of addresses, which I noticed to be always with size = 1, if it exists. The following is an example from Bitcoin Testnet:
{
"value": 0.91840581,
"n": 2,
"scriptPubKey": {
"asm": "OP_DUP OP_HASH160 1416b8f3a1c1c7e3e73a05046f002e66004accc3 OP_EQUALVERIFY OP_CHECKSIG",
"hex": "76a9141416b8f3a1c1c7e3e73a05046f002e66004accc388ac",
"reqSigs": 1,
"type": "pubkeyhash",
"addresses": [
"mhMB2g88n42ghQ5p1VA7Mt9VgTp9QvpDXU"
]
}
}
Why is the "addresses" (address) field a list? Are there any cases when this can take more than one address? Who can spend that then?
So it's never used now? It's safe to just take element number 0? – The Quantum Physicist – 2018-07-13T01:28:38.317
Raw multisig isn't used; there is no way for common wallet software to send to it. For anything but raw multisig, only a single address will be present. – Pieter Wuille – 2018-07-13T01:40:26.870