The fresh* methods guarantee you you'll get a fresh address on each
call. This can be a bit excessive e.g. when the user spams some "request
coins" button but then the addresses stay unused, so there is also the
notion of "current". Current addresses stay the same on each call until
bitcoinj detects they have been used. CurrentChangeAddress() is used for
change by bitcoinj itself, you normally should not need it.

For typical wallet operation, use currentReceiveAddress() e.g. to encode
it in a QR code.


On 03/09/2018 02:48 PM, theg wrote:
> I am new to bitcoinj, I would like to know what is the difference
> between currentChangeAddress vs currentReceiveAddress vs freshReceiveAddress
> and how is the implementation of each of those address (and which
> address is keeping the funds) ? I mean I wanna make an application (just
> say it is an exchanger like bi*ance or pol*niex), which one should I
> display to user , which address should I display for the user in order
> to deposit to my exchanger ?
> 
> -- 
> 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.

Reply via email to