13

I want to get all my addresses - including the auto-generated "change" addresses - from a running bitcoind somehow.

I haven't been able to do it in a simple way. "getaddressesbyaccount" and all the other API options are only listing the "public" addresses and sometimes few additional ones, but never the already used change addresses. Can I do that somehow?

12
+50

listaddressgroupings

I used the command listaddressgroupings from the bitcoin-qt console window and it listed all my addresses. I then looked for one of my old send transactions here:

https://blockchain.info/

And found the change address. It matches one of the addresses in the list.

  • 1
    I think you are correct. I will let you know and accept this if this is indeed correct. – Karel Bílek Apr 6 '13 at 20:20
  • I did that and there's nothing in my groupings. – Colin Dean Apr 7 '13 at 16:33
  • When I use that command, I see every address that I've ever used. Are you sure that the wallet is loaded? It shows other tranactions and non-change addresses? You can find your change addresses by looking up your addresses on blockchain.info – Eyal Apr 7 '13 at 18:17
  • 1
    This also showed me the balance of each address, which was precisely what I needed. – Michael Hampton Aug 11 '15 at 20:28
  • is this only working when the address was linked to an account? edit: or do i have to complete syncing the chain? atm listaddressgroupings returns an emty array even though I called getnewaddress several times – tobi Feb 7 '17 at 19:49
1

You may be able to use pywallet to get these.

Download a more updated version here.

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.