0

I managed to get Bitcoin addresses from xpub using bitcoinj with this code :

DeterministicKey hd = DeterministicKey.deserializeB58("xpub...", MainNetParams.get());
DeterministicHierarchy hi = new DeterministicHierarchy(hd);
List<ChildNumber> childList = new ArrayList<ChildNumber>();
ChildNumber childNumber = new ChildNumber(0, false);
childList.add(childNumber);
DeterministicKey key = hi.get(childList, true, true);
Address address = key.toAddress(MainNetParams.get());

I try to do the same thing to get Ethereum addresses. So I know my path should be something like m/44/60/0/0 but I can't choose a specific path.

Any suggestion in java?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.