ROUND(AVG("NEW ADDRESSSX")) | |
---|---|
1 | 5485 |
Hessishlbt nw
Updated 4 days ago
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
›
⌄
-- forked from Daily active bettor @ https://flipsidecrypto.xyz/studio/queries/5149a7a2-5db6-44a7-87df-5e4fb508307f
with all_txs as
(select a.ORIGIN_FROM_ADDRESS as address,
a.TOPICS[1] as game_id,
CAST(ethereum.public.udf_hex_to_int(b.data) AS NUMERIC) / 1e6 AS amount,
SUBSTRING(a.data, 193, 2)||'x' as leverage,
a.tx_hash,
a.BLOCK_TIMESTAMP::date as time
from monad.testnet.fact_event_logs a
join monad.testnet.fact_event_logs b
on a.tx_hash = b.tx_hash
where --a.tx_hash = '0xb4fad7b9942b28f1d153a4c7c984b791fb1227956756c4fa2293c83f519adbb3' and
a.ORIGIN_TO_ADDRESS = '0x66dd5e0be80417cef966d788079d9be7a8618753'
and a.ORIGIN_FUNCTION_SIGNATURE = '0xf136c3db'
and a.topics[0] = '0xd026f53b49532f9b4c7e59f32feb5b919b08627ac82d92d57e12a19c45054efa'
and b.CONTRACT_ADDRESS = '0xbf7a88acbb8cf66b72af6c399569e37ee4d5195f'
and b.topics[0] = '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef'
having '0x'||SUBSTRING(b.topics[1], 27) = b.ORIGIN_FROM_ADDRESS
union
select a.ORIGIN_FROM_ADDRESS as address,
a.TOPICS[1] as game_id,
CAST(ethereum.public.udf_hex_to_int(b.data) AS NUMERIC) / 1e6 AS volume,
SUBSTRING(a.data, 193, 2)||'x' as leverage,
a.tx_hash,
a.BLOCK_TIMESTAMP::date as time
from monad.testnet.fact_event_logs a
join monad.testnet.fact_event_logs b
on a.tx_hash = b.tx_hash
where --a.tx_hash = '0x9f2132d167ba686d0fa496fe991695a1403c0014e1152de717fb4749ed44ccd0' and
a.ORIGIN_TO_ADDRESS = '0x1240a9cf5e2bf10eba09740f7127b9b59218907f'
and a.ORIGIN_FUNCTION_SIGNATURE = '0xf136c3db'
Last run: 4 days ago
1
8B
114s