Can you try using wallet-tool for creating your watching wallet, just to
see if it should work? Actually I think I stole my tiny code sample from
there.
On 05/16/2017 03:02 AM, Dexter wrote:
> Thanks, I tried it and I am getting
>
> Exception in thread "main" java.lang.IllegalArgumentException: You can
> only watch an account key currently
>
> What does this mean?
>
> Code I:
>
> DeterministicKey key = DeterministicKey.deserializeB58("MY XPUB KEY",params);
> Wallet wallet = Wallet.fromWatchingKey(params,key);
>
>
> Code II:
>
> DeterministicKey key = DeterministicKey.deserializeB58("MY XPUB KEY",params);
> Wallet wallet =
> Wallet.fromWatchingKeyB58(params,key.serializePubB58(params),DeterministicHierarchy.BIP32_STANDARDISATION_TIME_SECS);
>
>
>
> On Monday, May 15, 2017 at 1:16:30 PM UTC+5:30, Andreas Schildbach wrote:
>
> Yes, you can create a watching wallet from an xpub. See
>
> Wallet.fromWatchingKeyB58()
>
>
> On 05/15/2017 12:59 AM, Dexter wrote:
> > Is it possible to use extended xpub from electrum and initiate the
> > wallet so that it generates the same receive address as electrum.
> > Thanks.
> >
> > --
> > 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 [email protected]
> > <mailto:[email protected]>.
> > For more options, visit https://groups.google.com/d/optout
> <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 [email protected]
> <mailto:[email protected]>.
> 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 [email protected].
For more options, visit https://groups.google.com/d/optout.