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

Tor proxy on Electrum, what does Port: 9150 and 9050 mean?

How to discover startup flags or command-line options for bitcoind?

Can we see Blockchain decentralized data like a mathematical duality or morphisms between representations?