https://github.com/XRPLF/xrpl.js/pull/2661#issuecomment-2535279196 Explorer has something similar to calculate balance differences. Might be useful to refer https://github.com/ripple/explorer/blob/1e89d531b696ac39c78495f2fa12d8ca8ad49d6f/src/containers/shared/utils.js#L354