freemartianReya - Hourly details
Updated 2024-05-07
999
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
›
⌄
-- Ethereum Contract: 0xdff78a949e47c1e90f3dd6dd7fe2fa72b42a75f7
-- optimism contract: 0x9239609eed7c40c6ddcec25d247ef205103590b6
-- polygon contract: 0xC0acBb471465FCf848746D1837d8358aB891546c
-- Arbitrum contract: 0xa0e9b6da89bd0303a8163b81b8702388be0fde77
WITH
matic_price AS (
SELECT hour::date AS day ,AVG(price) AS price
FROM polygon.price.ez_hourly_token_prices
WHERE token_address = '0x0000000000000000000000000000000000001010'
AND Hour::date >= '2024-04-22'
GROUP BY 1
),
eth_price AS(
SELECT hour::date AS day ,AVG(price) AS price
FROM ethereum.price.ez_hourly_token_prices
WHERE token_address = '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2'
AND hour::date >= '2024-04-22'
GROUP BY 1
),
-- ==== Ethereum =====
ethereum AS (
SELECT
transfer.block_timestamp,
transfer.tx_hash,
transfer.origin_function_signature,
origin_from_address,
origin_to_address,
raw_amount/pow(10,6) AS amount,
tx_fee*price AS fee_usd,
'Ethereum' AS network
FROM ethereum.core.ez_token_transfers transfer
Auto-refreshes every 1 hour
QueryRunArchived: QueryRun has been archived