freemartianAll Stakes Transactions
Updated 1 hour 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
›
⌄
WITH
temp_nft_holders AS(
SELECT *, rank() over(partition BY user_address ORDER BY block_timestamp DESC) AS rank
FROM ethereum.core.fact_token_balances
WHERE contract_address = lower('0x9830b32f7210f0857A859c2A86387e4d1bB760B8')
and block_timestamp <= '2025-02-17 04:00:00.000' --snapshot timestamp
qualify rank = 1
),
nft_holders as (
SELECT
user_address,
balance
FROM temp_nft_holders
WHERE balance >=4
-- WHERE balance >0
ORDER BY 2 DESC
),
stake_datas as (
select
block_timestamp, tx_hash, origin_from_address as user_address, amount, 'stake' as label
from base.core.ez_token_transfers
where origin_function_signature = '0x6e553f65'
and contract_address = '0x98d0baa52b2d063e780de12f615f963fe8537553'
and origin_to_address = '0x548d3b444da39686d1a6f1544781d154e7cd1ef7'
-- and from_address = '0x0000000000000000000000000000000000000000'
-- and tx_hash = '0xbbb7bd642c374163d57fb3edc9d776d3144c47db1456b7ca441abccc5061ccb4'
union all
select
block_timestamp,tx_hash, origin_from_address as user_address, -amount as amount, 'unstake' as label
from base.core.ez_token_transfers
where origin_function_signature = '0x9343d9e1'
and from_address = '0x548d3b444da39686d1a6f1544781d154e7cd1ef7'
and contract_address = '0x98d0baa52b2d063e780de12f615f963fe8537553'