strawbettyUST tx fee
Updated 2022-04-04
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
›
⌄
with swap_tx_ids as (
select tx_id
from terra.swaps
where tx_status = 'SUCCEEDED'
), transactions as (
select block_timestamp, fee
from terra.transactions
where tx_id IN (select * from swap_tx_ids)
), new_txs as (
select block_timestamp::date, sum(fee[0]:amount[0]:amount/1e6)
from transactions
where fee[0]:amount[0]:denom = 'uusd'
group by 1
), old_txs as (
select block_timestamp::date, sum(fee[0]:amount/1e6)
from transactions
where fee[0]:denom = 'uusd'
group by 1
)
select * from new_txs
UNION
select * from old_txs
Run a query to Download Data