0-MIDminters & burners avg
Updated 2023-08-03
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 tab1 as (
select date_trunc('month',BLOCK_TIMESTAMP) as month
,'AVALANCHE' as chain
,sum(case when FROM_ADDRESS='0x0000000000000000000000000000000000000000' then AMOUNT end) as mint_volume
,sum(case when TO_ADDRESS='0x0000000000000000000000000000000000000000' then AMOUNT end) as burn_volume
,count(distinct case when FROM_ADDRESS='0x0000000000000000000000000000000000000000' then TO_ADDRESS end) as minters
,count(distinct case when TO_ADDRESS='0x0000000000000000000000000000000000000000' then FROM_ADDRESS end) as burners
,count(distinct case when FROM_ADDRESS='0x0000000000000000000000000000000000000000' then TX_HASH end) as mints
,count(distinct case when TO_ADDRESS='0x0000000000000000000000000000000000000000' then TX_HASH end) as burnes
from avalanche.core.ez_token_transfers
where CONTRACT_ADDRESS in( lower('0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E'))
group by 1,2
union all
select date_trunc('month',BLOCK_TIMESTAMP) as month
,'ARBITRUM' as chain
,sum(case when FROM_ADDRESS='0x0000000000000000000000000000000000000000' then AMOUNT end) as mint_volume
,sum(case when TO_ADDRESS='0x0000000000000000000000000000000000000000' then AMOUNT end) as burn_volume
,count(distinct case when FROM_ADDRESS='0x0000000000000000000000000000000000000000' then TO_ADDRESS end) as minters
,count(distinct case when TO_ADDRESS='0x0000000000000000000000000000000000000000' then FROM_ADDRESS end) as burners
,count(distinct case when FROM_ADDRESS='0x0000000000000000000000000000000000000000' then TX_HASH end) as mints
,count(distinct case when TO_ADDRESS='0x0000000000000000000000000000000000000000' then TX_HASH end) as burnes
from arbitrum.core.ez_token_transfers
where CONTRACT_ADDRESS in (lower('0xaf88d065e77c8cC2239327C5EDb3A432268e5831'),lower('0xFF970A61A04b1cA14834A43f5dE4533eBDDB5CC8'))
group by 1,2
union all
select date_trunc('month',BLOCK_TIMESTAMP) as month
,'OPTIMISM' as chain
,sum(case when FROM_ADDRESS='0x0000000000000000000000000000000000000000' then AMOUNT end) as mint_volume
,sum(case when TO_ADDRESS='0x0000000000000000000000000000000000000000' then AMOUNT end) as burn_volume
,count(distinct case when FROM_ADDRESS='0x0000000000000000000000000000000000000000' then TO_ADDRESS end) as minters
,count(distinct case when TO_ADDRESS='0x0000000000000000000000000000000000000000' then FROM_ADDRESS end) as burners
,count(distinct case when FROM_ADDRESS='0x0000000000000000000000000000000000000000' then TX_HASH end) as mints
,count(distinct case when TO_ADDRESS='0x0000000000000000000000000000000000000000' then TX_HASH end) as burnes
from optimism.core.ez_token_transfers
where CONTRACT_ADDRESS in( lower('0x7f5c764cbc14f9669b88837ca1490cca17c31607'))
group by 1,2
Run a query to Download Data