My Event outputs an indexed parameter uint id
.
Can I query the logs for the max value of id
, without returning and searching through all log records?
I'm guessing not, since indexed values are stored as a hash so value comparisons would be impossible, but maybe I'm missing something.
How else could a single uint value be "cached" to the logs without having to retrieve all logs of that type?