connect watching wallet with blockchain

connect watching wallet with blockchain

i have created watch wallet
Wallet wallet = Wallet.fromWatchingKeyB58(params, tPub, DeterministicHierarchy.BIP32_STANDARDISATION_TIME_SECS); How can i link this with block chain i am using WalletAppKit class

kit = new WalletAppKit(params, walletFile, APP_NAME);
kit.startAsync(); kit.awaitRunning();

after that i add wallet in PeerGroup kit.peerGroup().addWallet(wallet) after that i print address of a wallet System.out.println(kit.wallet().currentReceiveAddress()); but this address and System.out.println(wallet.currentReceiveAddress()); this is not same. i am using bitcoinj for this, i have sent multiple transaction on wallet.currentReceiveAddress() but did not receive any of them, i don't know what i am doing wrong here, kindly help!

https://ift.tt/2qWfNEo

Comments

Popular posts from this blog

bitcoin node: what is the difference between simnet and regtest?

How to check if Electrum is masking my IP with the Tor proxy?

When mining with 2 computers, do I need to use 2 separate wallets addresses?