Aston_FUntitled Query
Updated 2022-03-03
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
›
⌄
select
date_trunc('day',block_timestamp) as blook_day,
date_trunc('hour',block_timestamp) as blook_hour,
case
when delegator_address = 'terra1jylvfk2vrfa0uq0sl3x3fudj768ycg4ztjnk4j' then 'me'
else 'everyone else' end as delegator,
count(*) as transactions,
sum(event_amount_usd) as amount
from terra.staking
where
validator_address_name = 'terravaloper1r843mpk5zzkfgtnduskd0dzgeltv0n503ckzy6'
-- and date_trunc('day',block_timestamp) > CURRENT_DATE - 14
and date_trunc('day',block_timestamp) = '2022-02-10 00:00:00.000'
group by 1, 2, 3
order by 4 desc
Run a query to Download Data