Afaik MultiBit HD is using a modified version of bitcoinj, so maybe you should ask there too.
The topic of watching wallets is covered in the docs: https://bitcoinj.github.io/working-with-the-wallet#watching-wallets Most important, in order to monitor you don't need any private key. Just use the public master key ("xpub") like explained in the link. On 09/26/2016 02:05 PM, Yvon Fortier wrote: > Hi people. > I'm trying to dump the master private key from MultibitHD to monitor > from other wallet, but I can't get it right. > What I do is restore a wallet and then try to get the private key from > the Wallet object: > > Code: > > *NetworkParameters PARAMS = MainNetParams.get();****DeterministicKeyChain kc > = wallet.getActiveKeychain();****DeterministicKey rk = > kc.getRootKey();****String key = rk.getPrivateKeyAsWiF(PARAMS);* > > > I'm getting an exception saying *java.lang.IllegalStateException: > Private key bytes not available * > > Any help would be greatly appreciated. > > Alternatively, if someone knows how to properly derive the master key > from the seed using a third party tool, that'd help! > > -- > You received this message because you are subscribed to the Google > Groups "bitcoinj" group. > To unsubscribe from this group and stop receiving emails from it, send > an email to bitcoinj+unsubscr...@googlegroups.com > <mailto:bitcoinj+unsubscr...@googlegroups.com>. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "bitcoinj" group. To unsubscribe from this group and stop receiving emails from it, send an email to bitcoinj+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.