22 rows yesterday at 1:10 PM
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
with
flows as (
select
date_trunc('day', timestamp) as stringDay,
SUM(
case
when input_0_value_address = '0x0000000000000000000000000000000000000000' then CAST(input_2_value_uint256 / 1e18 as DOUBLE)
when input_1_value_address = '0x0000000000000000000000000000000000000000' then - CAST(input_2_value_uint256 / 1e18 as DOUBLE)
else 0
end
) as netFlow
from
evm_events_ethereum_mainnet_v1
where
address = '0x3ae86d2d2f6a8d29792156dd92db01d7b3cc75fb'
and signature = 'Transfer(address,address,uint256)'
group by
stringDay
order by
stringDay asc
)
select
stringDay as chart_x,
sum(netFlow) over (
order by
stringDay asc
) as chart_y
from
flows