September 24, 2026

BitcoinJ : Balance and Transaction are not showing in wallet after restoring wallet from MnemonicCode

I have created a wallet with the help of WalletAppKit on Android and did some transaction in it.

Now what I try to do is, restoring that wallet from mnemonic code (BIP39). It also returns the Wallet object but it doesn’t contain the transactions.

Here is the link ref https://bitcoinj.github.io/working-with-the-wallet#seeds-and-mnemonic-codes which describe the working with mnemonic code and seeds.

It also says “now sync the restored wallet as described below” but I never found any way to sync it.

DeterministicSeed seed = wallet.getKeyChainSeed();
println("Seed words are: " + Joiner.on(" ").join(seed.getMnemonicCode()));
println("Seed birthday is: " + seed.getCreationTimeSeconds());

String seedCode = "yard impulse luxury drive today throw farm pepper survey wreck glass federal";
long creationtime = 1409478661L;
DeterministicSeed seed = new DeterministicSeed(seedCode, null, "", creationtime);
Wallet restoredWallet = Wallet.fromSeed(params, seed);
// now sync the restored wallet as described below.
Previous Article

Litecoin – mandatory-script-verify-flag-failed (Signature must be zero for failed CHECK(MULTI)SIG operation)

Next Article

Practical application of Electrum’s Encrypt/Decrypt message feature?