Two common reasons for this:
1. The incoming payments are not confirmed yet, or bitcoinj doesn't know
about the confirmations yet.
2. You're not covering the network fee. This commonly happens if you try
to send all you have without using the "emptyWallet" feature.
Maybe you'd like to post your wallet dump?
On 07/12/2017 10:25 AM, santiago del valle wrote:
> Hi, Im creating an Android App, Im being able to receive coins but when
> I try to send them says that Im missing Bitcoins to send, I have 0.006
> BTC in a Testnet Wallet, I dont really know what Im missing to achieve
> sending BTC. The BTC I received now have more that 3 block depth.
>
> walletAppKit = new WalletAppKit(testNet, walletDir, "bitcoin_wallet"){
>
> @Override
> protected void onSetupCompleted() {
> super.onSetupCompleted();
>
>
> if (wallet().getImportedKeys().size() < 1) {
> wallet().importKey(new ECKey());
> }
>
> Coin value1 =
> walletAppKit.wallet().getBalance(Wallet.BalanceType.AVAILABLE); //0.00BTC
>
> Coin value2 =
> walletAppKit.wallet().getBalance(Wallet.BalanceType.AVAILABLE_SPENDABLE);
> //0.00BTC
> Coin value3 =
> walletAppKit.wallet().getBalance(Wallet.BalanceType.ESTIMATED); //0.006 BTC
> Coin value4 =
> walletAppKit.wallet().getBalance(Wallet.BalanceType.ESTIMATED_SPENDABLE);
> //0.006
>
> ....
>
> --
> 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]
> <mailto:[email protected]>.
> For more options, visit https://groups.google.com/d/optout.
--
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.