0

this answers why vout.scriptPubKey.addresses is an array,

then why the address in listunspent response is a String?

Do you know any transactions in the blockchain have multi addresses in the vout?

1 Answer 1

1

This is a historical oddity.

In the past, Bitcoin Core would report the list of participating keys in a multisig addresses by listing the addresses for those keys. This was both confusing (addresses and keys are distinct things), but also unreliable, as the full public keys were not always knowm (when P2Sh was introduced). You can safely assume you won't see multiple addresses in any output to an address created in modern times.

2
  • Do we have any transactions in the blockchain which has more than one address in the output?
    – Tailer
    Jul 19, 2019 at 19:02
  • 1
    Yes, all bare multisig outputs. Jul 19, 2019 at 19:15

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.