Pine Analyticsspiritual-bronze copy copy
Updated 2025-01-27
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 tab1 as (
SELECT
DISTINCT tx_hash
from
ethereum.core.fact_transactions
where
to_address LIKE lower('0xEAaa41cB2a64B11FE761D41E747c032CdD60CaCE')
), tab2 as (
select
tx_hash,
block_timestamp,
origin_from_address,
median(amount_usd) as volume
FROM
ethereum.core.ez_token_transfers
WHERE
tx_hash in (
SELECT
*
from
tab1
)
AND contract_address in (
lower('0xdAC17F958D2ee523a2206206994597C13D831ec7'),
lower('0xC9bCa88B04581699fAb5aa276CCafF7Df957cbbf'),
lower('0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2')
)
GROUP BY 1,2,3
), tab3 as (
select
tx_hash as tx_id,
contract_address
FROM
Auto-refreshes every 24 hours
QueryRunArchived: QueryRun has been archived