freemartianUser Stake
Updated 2024-07-23
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
›
⌄
-- 0xc148cf85: unstake
-- 0xc88d9ba6: stake
WITH stake AS (
SELECT
block_timestamp,
tx_hash,
from_address,
value,
tx_fee,
'Stake' AS label
FROM blast.core.fact_transactions
WHERE to_address = '0xe1784da2b8f42c31fb729e870a4a8064703555c2'
AND origin_function_signature = '0xc88d9ba6'
)
SELECT
from_address,
count(tx_hash) AS transactions,
SUM(value) AS stake_value,
SUM(tx_fee) AS fee
FROM stake
WHERE from_address = LOWER('{{wallet_address}}')
GROUP BY 1
ORDER BY 1 DESC
QueryRunArchived: QueryRun has been archived