What if the response of importaddress API command?

+1 vote
I'm using importaddress in my JSON RPC application. How do I know if the command ran successfully? For the commands involving transactions, I get transaction id as string in the response. But what about the importaddress command?
asked Apr 8, 2016 by Cypher

1 Answer

+1 vote
 
Best answer

Good question! I just updated the docs to reflect the fact that it returns null if successful, otherwise a regular JSON-RPC error.

answered Apr 8, 2016 by MultiChain
selected Apr 8, 2016 by Cypher
Thank you. I'd also like to know if importaddress will lead to storage of additional data in the node? If yes, is there any way to revert it back?
Yes, it will cause any transactions involved the imported address to be included in the node's wallet. Unfortunately there isn't currently a way to remove addresses.
...