Salehf-w-32-date-time-eth
Updated 2022-11-22
999
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
30
31
32
33
34
35
36
›
⌄
select
'Ethereum' as chain
,dayname(block_timestamp) as daily
,hour(block_timestamp) as hourly
,datediff(day,min(block_timestamp),max(block_timestamp)) as Activity_days
,count(DISTINCT tx_hash) as tx_count
,count(DISTINCT FROM_ADDRESS) as wallets
,sum(amount) as volume
,avg(amount) as avg_volume
from ethereum.core.ez_token_transfers
where block_timestamp::date>=CURRENT_DATE-{{Days}}
and SYMBOL = 'USDC' --USDC in ETH
and amount_usd>0
group by 1,2,3
-- union all
-- select
-- 'Solana' as chain
-- ,date_trunc('{{Date_Grouping}}',block_timestamp)::date as date
-- ,datediff(day,min(block_timestamp),max(block_timestamp)) as Activity_days
-- ,count(DISTINCT tx_id) as tx_count
-- ,count(DISTINCT tx_from) as wallets
-- ,sum(amount) as volume
-- ,avg(amount) as avg_volume
-- from solana.core.fact_transfers
-- where block_timestamp::date>=CURRENT_DATE-{{Days}}
-- and mint='EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v' --USDC in Solana
-- group by 1,2
-- union all
-- select
-- 'Algorand' as chain
-- ,date_trunc('{{Date_Grouping}}',block_timestamp)::date as date
-- ,datediff(day,min(block_timestamp),max(block_timestamp)) as Activity_days
Run a query to Download Data