0x6C85057A24CaCD026777CA1e3459b4109e3bc9aBmigration_stats copy
Updated 2025-01-08
999
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 kgmm2019 / migration_stats @ https://flipsidecrypto.xyz/kgmm2019/q/I_M-gCd1VorD/migration_stats
-- forked from migrated @ https://flipsidecrypto.xyz/studio/queries/ae09b85f-9958-4b07-8ae3-28168fe675c0
-- forked from pre migration @ https://flipsidecrypto.xyz/studio/queries/12a30071-3d92-48a4-a00d-30c210cc665b
--select * from solana.core.fact_token_balances limit 100
with cte_main as (
select
dateadd(HOUR, -5, block_timestamp) as ts,
--sunday nov 3rd new time (-5)
BLOCK_TIMESTAMP,
mint,
owner,
pre_balance as pre_balance,
balance as balance,
tx_id
from
solana.core.fact_token_balances
where
BLOCK_TIMESTAMP > '2024-12-17 10:00'
and BLOCK_TIMESTAMP < '2024-12-18 05:00' --and tx_id = '4mPzsoMbtx7MXNTqUEn3Agr1obPePbwL2BVS3QfuNPECvyF44qf4Xs9etQo7SMnu7DFdhPhnjVeTdPGRZZBusrX9'
and mint LIKE '%pump'
--and mint = '7UeQu9ymy2eCxpgGaVzVBR6rSBJUjX48vg7675h9pump'
-- and mint = 'HBXXhWZCoUGUQCafrdeR34TuGv6hpVLoVzi58QHapump'
--limit 100
),
cte as (
select
min(ts) as ts,
min(BLOCK_TIMESTAMP) as BLOCK_TIMESTAMP,
mint,
sum(pre_balance) as pre_balance,
sum(balance) as balance,
count(*) as counts,
tx_id
from
cte_main --where owner = 'EVFjZxibVpwMD6h8NuFwVNzyYHaM1qmKLzPXNkKBdET4'
group by
QueryRunArchived: QueryRun has been archived