jackguyalgo test
Updated 2022-11-21
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
›
⌄
with ethereum as (
SELECT
date_trunc('week', block_timestamp) as week,
'ethereum' as chain,
sum(amount) as transfer_volume,
count(DISTINCT FROM_ADDRESS) as senders,
count(DISTINCT TO_ADDRESS) as receivers,
avg(amount) as average_transfer_size
FROM ethereum.core.ez_token_transfers
where symbol LIKE 'USDC'
GROUP BY 1,2
), optimism as (
SELECT
date_trunc('week', block_timestamp) as week,
'optimism' as chain,
sum(raw_amount/power(10,6)) as transfer_volume,
count(DISTINCT FROM_ADDRESS) as senders,
count(DISTINCT TO_ADDRESS) as receivers,
avg(raw_amount/power(10,6)) as average_transfer_size
FROM optimism.core.fact_token_transfers
where contract_address LIKE lower('0x7F5c764cBc14f9669B88837ca1490cCa17c31607')
GROUP BY 1,2
), solana as (
SELECT
date_trunc('week', block_timestamp) as week,
'solana' as chain,
sum(amount) as transfer_volume,
count(DISTINCT TX_FROM) as senders,
count(DISTINCT TX_TO) as receivers,
avg(amount) as average_transfer_size
FROM solana.core.fact_transfers
where MINT LIKE 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v'
GROUP BY 1,2
), algorand as (
SELECT
date_trunc('week', block_timestamp) as week,
Run a query to Download Data