freemartianTotal Puffer Datas
Updated 2024-03-01
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 puffer AS (
SELECT
block_timestamp,
tx_hash,
origin_function_signature,
from_address,
to_address,
amount,
amount_usd,
symbol
FROM ethereum.core.ez_token_transfers
WHERE to_address = '0x4aa799c5dfc01ee7d790e3bf1a7c2257ce1dceff'
AND origin_from_address = from_address
AND block_timestamp::date >= '2024-02-01'
),
price AS (
SELECT hour, price, rank() over(ORDER BY hour DESC) AS rank
FROM ethereum.price.ez_hourly_token_prices
WHERE symbol = 'WETH'
AND hour::date = current_date
qualify rank = 1
)
SELECT
count(tx_hash) AS transactions,
count(DISTINCT from_address) AS wallets,
SUM(amount) AS eth_value,
SUM(amount*price) AS usd_value
FROM puffer
INNER JOIN price
Auto-refreshes every 12 hours
QueryRunArchived: QueryRun has been archived