<p>I imported the private keys into my wallet and they appear to be added:
This is the result when i run getImportedKeys(): </p>

<pre><code>[ECKey{pub HEX=022249de1a0fb3c72fe9284ca449477ef1b0e43dc4245d3137d7d7a57f697f8d1d, isEncrypted=false, isPubKeyOnly=false}, ECKey{pub HEX=039ad0a1c1f63b3d5db4eab32401396f0dae98935825e99381cd3a630092ef1e0f, isEncrypted=false, isPubKeyOnly=false}, ... etc
</code></pre>

<p>I resynced  the wallet, but the transactions associated with this keys are not showing up.</p>

<p>From my understanding it can deduce the public keys from the private keys, and look up the transactions associated with those keys. Im using WalletAppKit to create the wallet, everything works okey, the wallet is functional. This is how i initialize the wallet:</p>

<pre><code>    MainContext = context;
    coinreceived = MediaPlayer.create(MainContext, R.raw.received);
    coinsent=MediaPlayer.create(MainContext, R.raw.sent);
    kit = new WalletAppKit(netParams, new File(String.valueOf(context.getFilesDir()+ File.separator + walletFolder))  , "walletappkit-example");

    kit.setDownloadListener(listener);
    kit.setBlockingStartup(false);
    kit.startAsync();

    saveWalletAddress();
</code></pre>

<p>Any ideas on how can i solve this? Thanks in advance.</p>

CC BY-SA 4.0
2019-05-03T13:29:43.367Z
What software is that even?
Claris
CC BY-SA 4.0
2019-05-03T13:30:39.617Z
I forgot to mention, bitcoinj.
Leon Trotsky
<private-key><synchronization><bitcoinj>
Importing the keys Issue
Leon Trotsky
# Importing the keys Issue

(Asked by: username_0 on 2019-05-03)

I imported the private keys into my wallet and they appear to be added:
This is the result when i run getImportedKeys(): 
[ECKey{pub HEX=022249de1a0fb3c72fe9284ca449477ef1b0e43dc4245d3137d7d7a57f697f8d1d, isEncrypted=false, isPubKeyOnly=false}, ECKey{pub HEX=039ad0a1c1f63b3d5db4eab32401396f0dae98935825e99381cd3a630092ef1e0f, isEncrypted=false, isPubKeyOnly=false}, ... etc

I resynced  the wallet, but the transactions associated with this keys are not showing up.
From my understanding it can deduce the public keys from the private keys, and look up the transactions associated with those keys. Im using WalletAppKit to create the wallet, everything works okey, the wallet is functional. This is how i initialize the wallet:
    MainContext = context;
    coinreceived = MediaPlayer.create(MainContext, R.raw.received);
    coinsent=MediaPlayer.create(MainContext, R.raw.sent);
    kit = new WalletAppKit(netParams, new File(String.valueOf(context.getFilesDir()+ File.separator + walletFolder))  , "walletappkit-example");

    kit.setDownloadListener(listener);
    kit.setBlockingStartup(false);
    kit.startAsync();

    saveWalletAddress();

Any ideas on how can i solve this? Thanks in advance.

**Tags:** private-key, synchronization, bitcoinj

> **Comments:**
> **username_1**: What software is that even?  
> **username_0**: I forgot to mention, bitcoinj.  

---

## 0 answers

