0
I'm implementing an app using BitcoinJ, but every time I run the code, a new address is created. Is there any way to work with the very first address that was created and stop creating new addresses?
walletAppKit = new WalletAppKit(parameters, walletDir, "my_wallet") {
@Override
protected void onSetupCompleted() {
if (wallet().getImportedKeys().size() < 1)
wallet().importKey(new ECKey());
walletAppKit.peerGroup().setBloomFilterFalsePositiveRate(0.00001);
setupWalletListeners(wallet());
for (Address address: wallet().getIssuedReceiveAddresses()){
Log.d("myLogs", address.toBase58());
}
}
};
walletAppKit.setBlockingStartup(false);
walletAppKit.setUserAgent("RocketWallet", "1.0");
walletAppKit.startAsync();