zefwow new validators 60 days
Updated 2021-12-13
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
26
27
28
29
30
31
32
33
›
⌄
with vp as
(
select distinct
max(date_trunc('day', block_timestamp)) as Dt_Day
, address
, max(voting_power) as Daily_Voting_Power
from
terra.validator_voting_power
where
date_trunc('day', block_timestamp)>=current_date-60
group by
2
having max(date_trunc('day', block_timestamp))>=current_date-60
),
new_validators as (
select
date_trunc('day', block_timestamp) as dt_day,
main.address,
max(voting_power)
from
terra.validator_voting_power main
left join
terra.validator_labels vl
on
main.address=vl.vp_address
where main.address in (select distinct address from vp)
group by
1,2)
select * from new_validators nv
left join terra.validator_labels vl
on nv.address=vl.vp_address
order by dt_day
Run a query to Download Data