Bitcoin Forum
May 08, 2024, 06:14:37 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Bitcoinj Importing Private Keys  (Read 132 times)
DickonManwoody (OP)
Newbie
*
Offline Offline

Activity: 1
Merit: 0


View Profile
May 04, 2019, 01:35:14 AM
 #1


I imported the private keys into my wallet and they appear to be added: This is the result when i run getImportedKeys():
Code:
[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:
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();
Any ideas on how can i solve this? Thanks in advance.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!