freemartianFuel - User Activities
Updated 2024-10-18
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
›
⌄
with deposits AS (
SELECT
block_timestamp, tx_hash, from_address, amount_usd, 'ETH' AS symbol
FROM ethereum.core.ez_native_transfers
WHERE to_address = '0x19b5cc75846bf6286d599ec116536a333c4c2c14'
AND origin_function_signature = '0xdf68e9d6'
AND block_timestamp::date >= '2024-07-08'
UNION
SELECT
block_timestamp, tx_hash, from_address, amount_usd, symbol
FROM ethereum.core.ez_token_transfers
WHERE to_address = '0x19b5cc75846bf6286d599ec116536a333c4c2c14'
AND origin_function_signature = '0xdf68e9d6'
AND block_timestamp::date >= '2024-07-08'
),
user AS (
SELECT
from_address,
count(*) AS transactions,
SUM(amount_usd) AS usd_amount,
ROW_NUMBER() OVER (ORDER BY usd_amount DESC) AS rank,
FROM deposits
GROUP BY 1
)
SELECT
from_address AS user,
transactions,
usd_amount,
rank
FROM user
WHERE from_address = '{{Wallet_Address}}'
QueryRunArchived: QueryRun has been archived