Use Wallet.completeTx() to complete the transaction. Then you can query
for the fee as you noted.


On 07/20/2017 11:58 AM, santiago del valle wrote:
> Hi All.
> Is there away to calculate Fee just before broadcast the Transaction?
>  What I tried is:
> 
> SendRequest request = SendRequest.to(Address.fromBase58(parameters, 
> recipientAddress), Coin.parseCoin(amount));
> 
> return request.tx.getFee().toPlainString();
> 
> 
> /But, seems that the sum of inputs is Zero, so it shows me that the fee
> is the amount to send./
> 
> /
> /
> 
> /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
> <mailto:bitcoinj+unsubscr...@googlegroups.com>.
> 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 bitcoinj+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • Fee Calculation santiago del valle
    • Re: Fee Calculation Andreas Schildbach

Reply via email to