jackguyUSDC on AVAX and L2s 7
Updated 2023-09-26
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
30
31
32
33
34
35
36
›
⌄
WITH
-- Avalanche
avalanche_transfers AS (
SELECT
date_trunc('week', block_timestamp) as week,
'Avalanche' as chain,
count(DISTINCT from_address) as users,
count(DISTINCT tx_hash) as transfers,
sum(raw_amount / power(10, decimals)) as transfer_volume
FROM avalanche.core.ez_token_transfers
WHERE contract_address LIKE lower('0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E')
GROUP BY 1, 2
),
-- Optimism
optimism_transfers AS (
SELECT
date_trunc('week', block_timestamp) as week,
'Optimism' as chain,
count(DISTINCT from_address) as users,
count(DISTINCT tx_hash) as transfers,
sum(raw_amount / power(10, decimals)) as transfer_volume
FROM optimism.core.ez_token_transfers
WHERE contract_address LIKE lower('0x7F5c764cBc14f9669B88837ca1490cCa17c31607')
GROUP BY 1, 2
),
-- Arbitrum
arbitrum_transfers AS (
SELECT
date_trunc('week', block_timestamp) as week,
'Arbitrum' as chain,
count(DISTINCT from_address) as users,
count(DISTINCT tx_hash) as transfers,
sum(raw_amount / power(10, decimals)) as transfer_volume
Run a query to Download Data