```
 WalletAppKit kit = UserWallet.getInstance();
        Address toAddress = 
Address.fromBase58(UserWallet.getNetworkParameters(), 
masterWallet.freshReceiveAddress().toString()); /
        System.out.println(kit.wallet().getUnspents().size());

        Transaction transaction = new 
Transaction(UserWallet.getNetworkParameters());
        for (TransactionOutput unspent : kit.wallet().getUnspents()) {
            transaction.addInput(unspent);
        }
        
transaction.addOutput(userWallet.getBalance().minus(Transaction.REFERENCE_DEFAULT_MIN_TX_FEE),
 
toAddress);
        SendRequest sendRequest = SendRequest.forTx(transaction);
        sendRequest.aesKey = 
kit.wallet().getKeyCrypter().deriveKey("password");
        sendRequest.feePerKb = Coin.valueOf(1000);
        try {
            Wallet.SendResult result = kit.wallet().sendCoins(sendRequest);
            System.out.println(result.tx.getHash());
        } catch (InsufficientMoneyException e) {
            e.printStackTrace();
        }
    }


```

This was my send coin method.

But transaction has denied by this message
min relay fee not met(66)

c9d1041a5e64ed768f1cbaea450eeef5c7ec8c7389a3aa943a2d5cb8a734722a

this is the tx hash.

now my btc has gone away. 
i can't get them again to my wallet..

How to cancel this pending transaction?
or How to solve this?

-- 
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.

Reply via email to