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

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.

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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