misaghlbETH Merge: Selling Event?
Updated 2022-09-29Copy 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 miner as (
select DISTINCT miner from ethereum.core.fact_blocks where network='mainnet'
)
SELECT
count(DISTINCT SENDER) as senders,
sum(amount_in) as vol,
'Non-Miner Sell' as type
FROM ethereum.core.ez_dex_swaps
WHERE SYMBOL_IN = 'WETH'
AND BLOCK_NUMBER >= 15537351
UNION ALL
SELECT
count(DISTINCT SENDER) as senders,
sum(amount_out) as vol,
'Non-Miner Buy' as type
FROM ethereum.core.ez_dex_swaps
WHERE SYMBOL_OUT = 'WETH'
AND BLOCK_NUMBER >= 15537351
UNION ALL
SELECT
count(DISTINCT SENDER) senders,
sum(amount_in) as vol,
'Miner Sell' as type
FROM ethereum.core.ez_dex_swaps
WHERE SYMBOL_IN = 'WETH'
AND BLOCK_NUMBER >= 15537351
AND SENDER in (SELECT miner from miner)
UNION ALL
SELECT
count(DISTINCT SENDER) as senders,
Run a query to Download Data