[TASK] Add balance_change array to transaction response, computed from metadata

Inlining this function in the 10 places that it is used would just clutter up the code unnecessarily. I don't see how it is confusing.