hi guys, i’m trying to calculate the individual averages for 4 arguments, from a smartContractEvent, for a period (1 day). Using this formula.
I have the actual averages of these 4 arguments, and this isn’t returning the correct numbers.
Where am I going wrong?
this actually gives the same results as my the top query.
I used the query below to get each block’s fee actual fee number, for the whole day.
Averaged that result, and it doesn’t match to the queries above.
Code here… Which of one these queries provides the correct value?
Yes thanks. But i ran all the queries on the 10th and the numbers don’t match up.
Just wanting to check to make sure the last formula I pasted, does what its meant to.
So there, trying to sum all the argument values for each event for 1 day
from my results “block_height”, there are no duplicates of any block in the repsonse.
Not sure if that is conclusive.
What code would I use to return every occurrence of an smartContractEvent?
I believe then it’s only showing 1 event per block, therefore it not taking all the events into the account, therefore you are getting different results.
hi Gaurav, your suggestion returns, a list of all the arguments, for a particular event. This is handy for verification purposes. However, I was after all occurrences of a particular event, on a given day. Perhaps filtered by argument (if too hard, not necessary).