cypherUntitled Query
Updated 2022-09-24
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
›
⌄
-- with deposit as (SELECT
-- date_trunc('day', block_timestamp) as date,
-- sum(eth_value) as total_eth_deposited
-- -- count(distinct(from_address)) as total_depositors
-- from ethereum.core.fact_traces
-- where block_timestamp >= '2020-10-14'
-- and to_address = lower('0x00000000219ab540356cBB839Cbe05303d7705Fa')
-- group by date
-- )
-- select * from deposit
-- order by date
select
date_trunc('day', block_timestamp) as date,
sum(event_inputs:value/1e18) as amount
from ethereum.core.fact_event_logs
where contract_address = lower('0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84')
and event_inputs:from = '0x0000000000000000000000000000000000000000'
and date >= current_date() - 30
group by date
Run a query to Download Data