why address of vout is array not single

+1 vote

hi team.why address of vout is array not  single? thanks.

./multichain-cli chain1 showblock 100 4

...........

    "tx" : [
        {
            "txid" : "67a300a1c7b8c6d17b53c92351cebc86f969bf038c5fb5f8768cfa1c34ee43bf",
            "version" : 1,
            "locktime" : 0,
            "vin" : [
                {
                    "coinbase" : "5f0101062f503253482f",
                    "sequence" : 4294967295
                }
            ],
            "vout" : [
                {
                    "value" : 35,
                    "n" : 0,
                    "scriptPubKey" : {
                        "asm" : "OP_DUP OP_HASH160 a925cee975aa2df9c1891e3f0697c355e4c6c70e OP_EQUALVERIFY OP_CHECKSIG",
                        "hex" : "76a914a925cee975aa2df9c1891e3f0697c355e4c6c70e88ac",
                        "reqSigs" : 1,
                        "type" : "pubkeyhash",
                        "addresses" : [
                            "1GRNVPC3CscRUTxYZQ2yWuYrkEhAFELSRa"
                        ]

                    }
                },

...........

asked Dec 5, 2018 by mcuser

1 Answer

0 votes
It is possible to have multiple addresses referenced in an output, for example using an old-style bare multisig. This is rarely done in practice, but it is still supported by MultiChain, thus the array.
answered Dec 7, 2018 by MultiChain
please make example。thanks
It's actually pretty hard to make a bare multisig using the MultiChain API. But you can see an example of getrawtransaction's output with multiple addresses in an array here: https://gist.github.com/dexX7/fbbc17482d5559b41b19
so,if i run mc2.0,will it not have multiple addresses in vout?
...