mamad-5XN3k3Untitled Query
Updated 2022-10-18
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
›
⌄
with actives as (
select date_trunc ('week',block_timestamp) as Week,
tx_from as users,
count (distinct block_timestamp::date) as Days_Count
from osmosis.core.fact_transactions
where tx_status = 'SUCCEEDED'
group by 1,2
having days_count >= 4)
select distinct CURRENCY,
--distinct sender,
project_name as projects,
count (distinct tx_id) as txs
from osmosis.core.fact_transfers a full outer join osmosis.core.dim_labels b on a.CURRENCY = b.address
where tx_status = 'SUCCEEDED'
and transfer_type = 'IBC_TRANSFER_OUT'
and sender in (select users from actives)
group by 1,2
order by 3 DESC
limit 10
Run a query to Download Data