Hossein2023-07-10 09:42 AM
Updated 2023-07-10
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 t as (
select
tx_hash,
block_timestamp,
'Mint' as type,
symbol,
origin_from_address as user,
amount
from avalanche.core.ez_token_transfers
where contract_address = '0xc3344870d52688874b06d844e0c36cc39fc727f6'
and from_address = '0x0000000000000000000000000000000000000000'
and to_address = '0x6c6f910a79639dcc94b4feef59ff507c2e843929'
and amount > 0
union all
select
tx_hash,
block_timestamp,
'Burn' as type,
symbol,
origin_from_address as user,
amount
from avalanche.core.ez_token_transfers
where contract_address = '0xc3344870d52688874b06d844e0c36cc39fc727f6'
and from_address = '0x6c6f910a79639dcc94b4feef59ff507c2e843929'
and to_address = '0x0000000000000000000000000000000000000000'
and amount > 0
)
select
type,
count(distinct tx_hash) as transactions,
count(distinct user) as users,
sum(amount) as volume,
Run a query to Download Data