h4wkETH Transferred 2
Updated 2023-11-07
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
›
⌄
-- forked from ETH Transferred @ https://flipsidecrypto.xyz/edit/queries/1fa70952-0f50-43a0-a6b5-6e0a11b8b9cd
with curr_eth_price as (
select symbol,
avg(price) as price
from ethereum.core.fact_hourly_token_prices
where symbol = 'WETH'
group by 1, hour
qualify row_number() over (partition by symbol order by hour desc) = 1
)
select
-- block_timestamp::date as date,
count(distinct tx_hash) as tx_count,
-- sum(tx_count) over (order by date) as cumu_tx,
count(distinct to_address) as to_address_count,
count(distinct origin_from_address) as from_address_count
-- sum(raw_amount_precise::integer/1e18) as eth_amount,
-- sum(eth_amount) over (order by date) as cumu_amount,
-- sum(raw_amount_precise::integer/1e18*price) as usd_amount,
-- sum(usd_amount) over (order by date) as cumu_usd
from base.core.fact_token_transfers
join curr_eth_price
where
contract_address = '0x4200000000000000000000000000000000000006'
-- tx_hash = '0xb04909b6445da907a18b3b16c122fd5df52ff41e26b8af81aca2c2430fcc4f1a'
and block_timestamp::date >= '2023-07-26'
-- group by 1
-- order by date desc
Run a query to Download Data