Hello
I can understand calculation of history while end point is "test"
But when I change end point to https://bitcoincash.blockexplorer.com
at that point I can not calculate perfect value for transaction
Or you can share logic how to calculate transaction details using https://bitcoincash.blockexplorer.com