fundrawtransaction change address to max input

fundrawtransaction change address to max input

i would like to implement disabling of change addresses (set change address same as address with max input amount as electrum does). For example if we have 50 inputs from 50 addresses with random amounts, we need to set change address same as transaction with maximum input amount. The problem is i cant understand how to get address from transaction with max amount. gettransaction returns multiple addresses in detail array, so i cant understand which one was used exactly. May be there is more simple solution.

I'm using latest bitcoind

https://ift.tt/2OaRLy1

Comments

Popular posts from this blog

bitcoin node: what is the difference between simnet and regtest?

How to check if Electrum is masking my IP with the Tor proxy?

Need help to recover blpckchain.info wallet, my wife forgot her password and the brute force with btcrecover is not catching the password