0xbidefiedge_ranage
Updated 2023-08-23
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
›
⌄
with target_tx as
(
SELECT
a.TX_HASH as TX_HASH
,ORIGIN_FROM_ADDRESS
from
(
SELECT
TX_HASH
,ORIGIN_FROM_ADDRESS
from ethereum.core.fact_event_logs
where ORIGIN_FROM_ADDRESS in ('0x354304234329a8d2425965c647e701a72d3438e5','0x6a9a595f0d2ccfe081b27b2630ffdc695bd434bd','0x66a12885f5df191e2b177e18bec643fe056d0d4d','0x76454f25aad744bb6aa824ce31f216fbeb9e05d8')
and CONTRACT_ADDRESS='0x88e6a0c2ddd26feeb64f039a2c41296fcb3f5640'
group by 1,2
) a
join
(
SELECT
TX_HASH
from ethereum.core.fact_transactions
where STATUS='SUCCESS'
and BLOCK_TIMESTAMP> '2023-01-01'
)b
on a.TX_HASH=b.TX_HASH
),
eth_price as
(
SELECT
date_trunc('hour',BLOCK_TIMESTAMP) as stat_date
,avg(LATEST_ANSWER_UNADJ/1E8) as price
from ethereum.chainlink.ez_oracle_feeds
where FEED_NAME='ETH / USD'
and BLOCK_TIMESTAMP> '2023-01-01'
Run a query to Download Data