I have a question about importprivkey

+2 votes
when "importprivkey" method is successfully executed, nothing is returned(null)

then how do i know the address associated private key?

Please answer fast.
asked Oct 27, 2017 by minsoonss
Good question! I've asked the team and will get back to you on this.
Thank you. I'm looking forward to your answer

2 Answers

0 votes

So... there is actually no official mechanism right now for getting the address which corresponds to the imported private key. Part of the reason is that you should generally already have that address (from wherever you generated/copied the private key) but perhaps that doesn't apply in your situation.

We'll look into adding something to help with this. In the meantime, if the private key is not already in the wallet, it will be added as the last key in the wallet. So after importprivkey you can retrieve the address using:

listaddresses * false 1

answered Oct 30, 2017 by MultiChain
If I have that address, can I get the address with my private key?
Can you please explain the question again?
how to calculate from private key to address
give me solution plz
You can look up the bitcoin documentation for this, bearing in mind MultiChain's different method for versioning private keys and addresses:


Or you can wait for the release of 1.0.2 which we hope will include a solution inside MultiChain itself.
+1 vote

MultiChain 1.0.2, just released, lets you pass a private key to validateaddress instead of an address, and the response will include address corresponding to that private key. Thanks again for bringing this issue to our attention.

answered Nov 8, 2017 by MultiChain
Thank you so much for bringing this.