Cold nodes and importaddress

+1 vote

Hi,

I understand that if I do not want to store private keys in each wallet's node, I can centrally generate address in a cold node then import it in one node by using importaddress command. The public key will be imported, the private one can be given to the user's address owner and he can use it to sign raw-transactions before sending them.

But the APIs documentation indicates that the importaddress command make the address as "watch-only" in the node.

So, if the address is "watch-only" and cannot spend funds in the node, how can it perform raw-transactions on the node ?

Thank you for your reply.

asked Jun 1 by g.denaro

1 Answer

+1 vote
 
Best answer

A watch-only address can still be used to build transactions, in particular using the createrawsendfrom API. It's just not possible to spend funds of a watch-only address in a single API call such as sendfrom, because the signature has to take place separately. Please see this detailed tutorial for more information:

https://www.multichain.com/developers/external-key-management/

answered Jun 4 by MultiChain
selected Jun 5 by g.denaro
...