select distinct contract,
tokenflow_eth.hextoint(last_value(curr_value) over (partition by location, contract order by block, order_index)) / pow(10, 18) as balance
from tokenflow_eth.storage_diffs
where substr(location, 3, 42) = '0x4a9318f375937b56045e5a548e7e66aea61dd610'
order by balance desc
limit 1000;