Hi BitcoinJ,
I modified the SendRequest.java a little bit.
I checked the balance before and after I send the coin.
System.out.println("You have " +
kit.wallet().getBalance().toFriendlyString());
System.out.println("Send money from: " +
kit.wallet().getIssuedReceiveAddresses());
System.out.println("Send money to: " + to.toString());
Wallet.SendResult result = kit.wallet().sendCoins(kit.peerGroup(), to,
Coin.parseCoin("0.015"));
System.out.println("coins sent. transaction hash: " +
result.tx.getHashAsString());
System.out.println("You have " +
kit.wallet().getBalance().toFriendlyString());
But the result is something like:
You have 0.13396268 BTC
Send money from: [moUjgbi6P9Xy8dLCfeWzAeg4UciS5SUaBm]
Send money to: mv4rnyY3Su5gjcDNzbMLKBQkBicCtHUtFB
coins sent. transaction hash:
3e8ca46fa911be7ca4c1c34bd25bdd43ef574e17c95dbaa83ed93ec6a4f9d9ee
You have 0.00 BTC
The remaining value should be 0.13396268 - 0.015, but it told me 0.0 here?
Further, why I can not check the value in the testnet explorer like
https://live.blockcypher.com/btc-testnet/address/moUjgbi6P9Xy8dLCfeWzAeg4UciS5SUaBm/
How long the delay suppose to be in the BTC testnet?
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 [email protected].
For more options, visit https://groups.google.com/d/optout.