mariyaSolana - daily # of USDC transactions
Updated 2022-04-18
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 USDC_vol_solana_from as (
select sum(swap_from_amount) as USDC_from_amount ,to_date(block_timestamp) as swapdate from solana.swaps where
swapdate >= '2022-01-01' and swap_from_mint ='EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v' and succeeded=TRUE
group by swapdate)
, USDC_vol_solana_to as (
select sum(swap_to_amount) as USDC_to_amount ,to_date(block_timestamp) as swapdate from solana.swaps where
swapdate >= '2022-01-01' and swap_to_mint ='EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v' and succeeded=TRUE
group by swapdate)
, USDC_num_solana as (select count(*) as USDC_from_count,to_date(block_timestamp) as swapdate from solana.swaps where
swapdate >= '2022-01-01' and succeeded=TRUE
and (swap_from_mint ='EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v' or swap_to_mint ='EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v')
group by swapdate)
,USDC_avg_solana_from as (select (sum(swap_from_amount)/count(*)) as USDC_avg_from, sum(swap_from_amount),count(*) from solana.swaps where
to_date(block_timestamp) >= '2022-01-01' and swap_from_mint ='EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v' and succeeded=TRUE
)
,USDC_avg_solana_to as (select (sum(swap_to_amount)/count(*)) as USDC_avg_to, sum(swap_to_amount),count(*) from solana.swaps where
to_date(block_timestamp) >= '2022-01-01' and swap_to_mint ='EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v' and succeeded=TRUE
)
select * from USDC_num_solana
Run a query to Download Data