How to set fee in bitcoinj Is any possible way to set fee to specific value in bitcoinj wallet? Right now I have something like this and I don't know when to set fee:

    Address address = Address.fromBase58(params, destAddress);
    SendRequest req = SendRequest.to(address, Coin.valueOf(value));

    b_wallet.completeTx(req);
    peers.broadcastTransaction(req.tx);
It can be something like this,

req.fee = Transaction.REFERENCE_DEFAULT_MIN_TX_FEE;


REFERENCE_DEFAULT_MIN_TX_FEE refers to the minimum fee required to relay a transaction in a block which is set to 1000 Satoshis as of now.

One must remember that the transaction fee is like an incentive brought forward by the Bitcoin user to make sure that a particular transaction will get included into a block which is generated in future(and soon enough). Hence, an appropriate value of fees must be included with a transaction. Check FeesPerKB for this too.