Updated 2024-07-05
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 holdert as (
select
distinct holder,
--BLOCK_TIMESTAMP as "Transfer Date",
count(distinct TOKENID) as NFTs
from(
select
TOKENID,
NFT_TO_ADDRESS as holder,
BLOCK_TIMESTAMP,
row_number() over (partition by TOKENID order by BLOCK_TIMESTAMP desc) as rank
from ethereum.nft.ez_nft_transfers
where nft_address = lower('0x0581dDf7A136c6837429a46C6Cb7b388A3E52971')
and BLOCK_TIMESTAMP::date <= '2024-04-08'
)
where rank = 1
group by 1
order by 2 desc
)
select
distinct FROM_ADDRESS,
sum(amount)
from ethereum.core.ez_token_transfers join holdert on TO_ADDRESS = holder
where CONTRACT_ADDRESS = lower('0x8fc17671D853341D9e8B001F5Fc3C892d09CB53A')
group by 1
order by 2 desc
QueryRunArchived: QueryRun has been archived