pouya_22ccc
Updated 2022-08-28
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
›
⌄
with top_wallets as (select
origin_from_address as wallet,
sum(event_inputs:value / power(10,18)) as volume
from ethereum.core.fact_event_logs
where contract_address = lower('0xb47e3cd837dDF8e4c57F05d70Ab865de6e193BBB')
and origin_function_signature = '0x8264fe98'
and event_inputs:value is not null
group by 1
order by 2 desc
limit 10)
select
block_timestamp::date as date,
origin_from_address,
sum(event_inputs:value / power(10,18)) as vol,
count(distinct tx_hash) as txs,
sum(vol) over(partition by origin_from_address order by date) as total_vol
from ethereum.core.fact_event_logs
where contract_address = lower('0xb47e3cd837dDF8e4c57F05d70Ab865de6e193BBB')
and origin_function_signature = '0x8264fe98'
and event_inputs:value is not null
and origin_from_address in (select wallet from top_wallets)
group by 1,2
Run a query to Download Data