Pine AnalyticsBlast Holders 1
Updated 2024-07-19
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
›
⌄
with tab1 as (
SELECT --*
to_address as User,
sum(amount) as Total_BLAST
from blast.core.ez_token_transfers
where-- tx_hash like '0x14f9325ae350acae33d8bfa889fccff72b0a2172680a1b0eff0a0bb40a494b20'
contract_address like '0xb1a5700fa2358173fe465e6ea4ff52e36e88e2ad'
and from_address like '0xf7be503166828fe8565c520d66645ac6a06bbdd7'
and symbol like 'BLAST'
group by 1
having total_Blast > 0.00001
)
select
case when Total_Blast between 0 and 100 then 'a. 0-100 BLAST'
when Total_Blast between 100 and 1000 then 'b. 100-1k BLAST'
when Total_Blast between 1000 and 10000 then 'c. 1k-10k BLAST'
when Total_Blast between 10000 and 100000 then 'd. 10k-100k BLAST'
when Total_Blast between 100000 and 1000000 then 'd. 100k-1M BLAST'
else 'e. > 1M BLAST' end as Holding_Distribuiton,
count(distinct user) ,
sum(Total_BLAST) as Balance
from tab1
group by 1