USER | BALANCE | |
---|---|---|
1 | 0x70ca0fe96e47f8520f57f68b48c16b98123d3e24 | 189 |
2 | 0xad091229354420fce427cf84de20884db20082d4 | 35 |
3 | 0x48d8171b886f1f1fad190caa3b7f4c62263f9c45 | 28 |
4 | 0x37ac09e1640577e1d71e3787297a56b58f88f0f2 | 24 |
5 | 0x649c76c1c1b4733713ce7e778115fc9ea3691a43 | 15 |
6 | 0xcfa5369b6772befdd4209736f899336b4ec03215 | 11 |
7 | 0x7d4c68c3042c11e82e1879ccbe090bc2d91bdc30 | 11 |
8 | 0xb1fff52ad4e53ccf3904f911d86c5dd8334f701f | 10 |
9 | 0xc8321f89491e4fa445bb57cf8a361743343b2dd5 | 9 |
10 | 0xfcdfda023f727dafa35e8ee2715bcd7411c86b21 | 9 |
11 | 0x469adaf766fb35f1a3c2569fe8c57a50f4b39131 | 8 |
12 | 0xe77c7df7ef0ac9e0ad758bbd34a8f54d8c147f42 | 8 |
13 | 0x66fbe38d933d63a3b1a0e858ed22ee6448cc99ee | 7 |
14 | 0xbbf7875db094dfcbb91cb3831d4a82afb9f1adea | 6 |
15 | 0x619b7b65ed287195ce0e5d02aec37f9abe40afb6 | 6 |
16 | 0x17660368c5f1c1874c836c928bcec1fdc2eb2ba4 | 6 |
17 | 0x6a89fb64a18f82a17d445b5f9c721ad42361c62d | 6 |
18 | 0xceaa6864662521f257fd8daeed40582b3650f7b0 | 6 |
19 | 0x191465f8d0be82f6c8c111bea97959f0f7fb894b | 6 |
20 | 0x2d48df7ff3d4e1837916a155d281f66da25f5a2a | 6 |
Hessish1g - hld
Updated 10 days 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
›
⌄
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 ethereum.core.fact_event_logs
WHERE
CONTRACT_ADDRESS = lower('0xf39c410dac956ba98004f411e182fb4eed595270') 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)
select distinct receiver as user ,count(distinct token_id) as balance
from owenrs
group by 1
order by 2 desc
Last run: 10 days ago
...
1242
59KB
48s