HosseinUntitled Query
Updated 2022-06-24Copy Reference Fork
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 metamask as (
select count(distinct(a.tx_hash)) as metamask_transactions_volume from ethereum.core.fact_event_logs a
join ethereum.core.fact_transactions b on a.tx_hash = b.tx_hash
where a.tx_status = 'SUCCESS'
and a.ORIGIN_TO_ADDRESS = '0x881d40237659c251811cec9c364ef91dc08d300c'
and a.block_timestamp::date >= '2022-01-01'
),
sushiswap as (
select count(distinct(a.tx_hash)) as sushiswap_transactions_volume from ethereum.core.fact_event_logs a
join ethereum.core.fact_transactions b on a.tx_hash = b.tx_hash
where a.tx_status = 'SUCCESS'
and a.ORIGIN_TO_ADDRESS = '0xd9e1ce17f2641f24ae83637ab66a2cca9c378b9f'
and a.block_timestamp::date >= '2022-01-01'
and
(
a.ORIGIN_FUNCTION_SIGNATURE = '0x7ff36ab5' OR
a.ORIGIN_FUNCTION_SIGNATURE = '0x18cbafe5'
)
)
,
uniswap as (
select count(distinct(a.tx_hash)) as uniswap_transactions_volume from ethereum.core.fact_event_logs a
join ethereum.core.fact_transactions b on a.tx_hash = b.tx_hash
where a.tx_status = 'SUCCESS'
and a.block_timestamp::date >= '2022-01-01'
and a.ORIGIN_TO_ADDRESS = '0x7a250d5630b4cf539739df2c5dacb4c659f2488d'
and
(
a.ORIGIN_FUNCTION_SIGNATURE = '0xfb3bdb41' OR
a.ORIGIN_FUNCTION_SIGNATURE = '0x5c11d795' OR
a.ORIGIN_FUNCTION_SIGNATURE = '0x7ff36ab5' OR
a.ORIGIN_FUNCTION_SIGNATURE = '0x791ac947' OR
a.ORIGIN_FUNCTION_SIGNATURE = '0x18cbafe5'
)
)
Run a query to Download Data