use testnet faucet to send test bitcoin to your wallet address. link: https://testnet.manu.backend.hamburg/faucet.
Use below code to load wallet file and get balance: File file = new File("195da336-a311-4f69-8707-fcfb5f61dd5a.dat"); Wallet wallet = Wallet.loadFromFile(file); System.out.println(wallet.getBalance().toFriendlyString()); // Set up the components and link them together. final NetworkParameters params = TestNet3Params.get(); BlockStore blockStore = new MemoryBlockStore(params); BlockChain chain = new BlockChain(params, wallet, blockStore); final PeerGroup peerGroup = new PeerGroup(params, chain); peerGroup.setFastCatchupTimeSecs(wallet.getEarliestKeyCreationTime()); peerGroup.startAsync(); // Now download and process the block chain. peerGroup.downloadBlockChain(); peerGroup.stopAsync(); wallet.saveToFile(file); System.out.println("Synchronization completed"); System.out.println(wallet.getBalance().toFriendlyString()); On Saturday, November 11, 2017 at 4:04:09 AM UTC+5:30, v e wrote: > > Hi, > > This is my first time coding using this library and looking at the > documentation i could able to create a wallet. > Now I am trying to send some coins in test3network, how do load my wallet > with some coins programmatically? > > thanks > -- You received this message because you are subscribed to the Google Groups "bitcoinj" group. To unsubscribe from this group and stop receiving emails from it, send an email to bitcoinj+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.