Closed BeneRichi closed 1 year ago
@BeneRichi Hi, total
is useless value, you should use balance_amount_total
. I will optimize here, this place should not response transfer_amount_total & total field
@freehere107 Thanks for getting back to me. Ok, good to know! Because i had no clue what this huge number balance_amount_total
actually was. So can i expect that in the balance_amount_total
will be the value of the daily used fees afer your update? Or how can i calculate it ?
Thanks and appreciate your help.
@BeneRichi hi, balance_amount_total
is no precision set, you can cal with balance_amount_total/10**18
Confirmation
Affected Network(s)
Reef
Steps to reproduce
Just check my API call and the JSON response i get: https://reefaq.cartel.racing/api/statistics/reef-burn
->post('https://reef.api.subscan.io/api/scan/daily', [ "start" => "2022-08-01", "end" => "2022-08-04", "format" => "day", "category" => "Fee" ])
Expected output
Expected (https://reef.subscan.io/tools/charts?type=fee): time_utc": "2022-08-01T00:00:00Z", "total": 381.209
Actual output
Response (https://reefaq.cartel.racing/api/statistics/reef-burn): time_utc": "2022-08-01T00:00:00Z", "total": 0,
Additional factoids or references
Ive tried severeal timeframe parameters, the value for the total key is always 0.