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 Core errors with database block

Bitfinex & Market Synergy To Offer Institutional Calibre Cryptocurrency Connectivity