unlocking an unspent vout with externally managed key

+2 votes

Hi Multichain folks,

How do you unlock an unspent output in an address with an externally managed key?

Also, if an output is locked, can it still be sent using createrawtransaction?

Thanks.

asked Sep 20, 2017 by StevenChan

1 Answer

+2 votes
 
Best answer
Locking an output just means it won't be selected by that node as an input in the (common) case where the previous outputs aren't specified by an API's parameters. This has no meaning from the blockchain's global perspective and the output can still be used in createrawtransaction. Also you don't need the private key for an output in order to lock it, since it's just a rule applied on the individual node's level.
answered Sep 20, 2017 by MultiChain
selected Sep 21, 2017 by StevenChan
thanks Multichain, but I'm confused as in the Atomic Exchange transaction docs, it is mentioned that without a private key in the wallet, you cannot use preparelockunspentfrom
Later on the same page is a tutorial for building atomic exchanges with external private keys.
...