Hessishkhr hld tot
Updated 2025-02-10
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 khr hld @ https://flipsidecrypto.xyz/studio/queries/9150a470-0984-4bf8-81c8-e339086ccfd5
with all_actions as (SELECT BLOCK_TIMESTAMP,
'0x'||SUBSTRING(TOPICS[2], 27) as receiver,
ethereum.public.udf_hex_to_int(topics[3]) as token_id ,TX_HASH
from berachain.testnet.fact_event_logs
where --tx_hash = '0x6b764622974863ec8809d96ec45f92d38c6c3353f3e7566581da0de41effd56c' and
CONTRACT_ADDRESS = '0xf180136ddc9e4f8c9b5a9fe59e2b1f07265c5d4d' and
TOPICS[0] = '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef'
and TX_SUCCEEDED = 'TRUE'
),
owenrs as (select token_id, receiver
from (
select distinct token_id, receiver,
row_number() over (partition by token_id order by BLOCK_TIMESTAMP desc) as rn
from all_actions
) as ranked_actions
where rn = 1),
x as (select count(distinct receiver) as holders , 'Bera chain new tetsnet' as period
from owenrs
union
select
403389 as holders , 'Bera chain old tetsnet' as period)
select * from x order by 2
QueryRunArchived: QueryRun has been archived