NatValidator withdrawal
Updated 2022-03-30Copy Reference Fork
99
1
2
3
4
5
6
7
8
9
10
11
›
⌄
with rewards as (select date_trunc('day',block_timestamp) as date, sum(event_amount_usd) as Amount_USD, validator
from terra.reward
where tx_status = 'SUCCEEDED' and currency is not null and action = 'withdraw_delegator_rewards' and date >= '2020-10-27'
group by 1,3),
label as (select operator_address, label
from terra.validator_labels)
select r.date, r.amount_usd, r.validator, l.label, case when l.label is null then r.validator else l.label end as validators
from rewards r
left join label l on r.validator = l.operator_address;
Run a query to Download Data