Sbhn_NPswap 1
Updated 2023-01-12Copy Reference Fork
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
›
⌄
select 'Flow' as blockchain,
date_trunc('day',block_timestamp) as date,
count(DISTINCT tx_id) as swaps,
count(DISTINCT trader) as swappers
from flow.core.ez_swaps
where block_timestamp >= '2022-12-24'
group by 1,2
UNION ALL
select 'Solana' as blockchain,
date_trunc('day',block_timestamp) as date,
count(DISTINCT tx_id) as swaps,
count(DISTINCT swapper) as swappers
from solana.core.fact_swaps
where block_timestamp >= '2022-12-24'
and succeeded =TRUE
group by 1,2
UNION ALL
select 'Osmosis' as blockchain,
date_trunc('day',block_timestamp) as date,
count(DISTINCT tx_id) as swaps,
count(DISTINCT trader) as swappers
from osmosis.core.fact_swaps
where block_timestamp >= '2022-12-24'
and tx_succeeded = TRUE
group by 1,2
Run a query to Download Data