John_GaltUnique Addresses Boosting per Day
Updated 2022-07-06
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
›
⌄
with table1 as (select ----***this query includes addresses that have had up to two unpledging events, but not three or more***
tx_id,
block_timestamp as date
from terra.msg_events
where event_index = 3
and event_attributes:action = 'activate_boost'
and event_attributes:contract_address= 'terra1ns5nsvtdxu53dwdthy3yxs6x3w2hf3fclhzllc'
),
table2 as (select
tx_id,
event_attributes:sender as amper_address
from terra.msg_events
where date(block_timestamp) > '2022-02-01'
and event_index = 2
),
table3 as (select --this is all boosting events, manual and auto, by address and date
table1.date as date, table2.amper_address
from table1
inner join table2 on table1.tx_id = table2.tx_id
),
table4 as (select
distinct amper_address, date(date) as date
from table3
)
select date as Date, count(amper_address) as "Addresses"
from table4
group by date
Run a query to Download Data