cypherLido unique depositors
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
24
25
›
⌄
with data as (select
date_trunc('day', block_timestamp) as day,
tx_hash,
event_inputs:to as staker,
event_inputs:value/1e18 as amount
from ethereum.core.fact_event_logs
where contract_address = lower('0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84')
and event_inputs:from = '0x0000000000000000000000000000000000000000'),
depositors as (select startday, sum(count(*)) over (order by startday) as stakers
from (select staker, min(day) as startday
from data
group by staker
)
group by startday
order by startday desc)
select *, stakers - lag(stakers, 1, 0) over ( order by startday) as new_stakers
from depositors
-- select * from ethereum.core.fact_event_logs
-- where block_number = '15460416 '
-- and tx_hash = '0xc1b52fe9c3b4f1154caeee36ee29d7b8f951c8b327fca2a77faa974621f2988e'
Run a query to Download Data