Appends a change output to a raw transaction. This is useful when the transaction inputs exceed the required output amounts; the change is sent back to the specified address.
Arguments
- conn
A connection object created by
mc_connect.- tx_hex
Character string. The raw transaction hex to which change is added.
- address
Character string. The address that will receive the change.
- native_fee
Optional numeric. Native currency fee to be deducted from the change. If provided, the change output is reduced accordingly.