lagandispenserTop 10 whallets amount
Updated 2022-08-03
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
›
⌄
with solned_tx_ids as (select
tx_id ,
INNER_INSTRUCTION:instructions[0]:parsed:info:amount/1e6 amount
from solana.core.fact_events
where INSTRUCTION:programId = 'So1endDq2YkqhipRh3WViPa8hdiSpxWy6z3Z6tMCpAo'
and INNER_INSTRUCTION:instructions[0]:parsed:info:amount is not NULL
and SUCCEEDED=true
group by 1,2
),
solend_tokens as (
select
PRE_TOKEN_BALANCES[0]:owner user_wallet ,
LABEL,
amount,
tx_id ,
BLOCK_TIMESTAMP::date BLOCK_TIMESTAMP
from solana.core.fact_transactions join solned_tx_ids using (tx_id)
join solana.core.dim_labels
on PRE_TOKEN_BALANCES[0]:mint = ADDRESS
where SUCCEEDED=true and block_timestamp >= '2022-01-01'
)
select BLOCK_TIMESTAMP date ,
LABEL,
sum (amount) total_amount ,
count (tx_id) num_transactions ,
count (DISTINCT user_wallet ) num_wallets
from solend_tokens
--WHERE amount <= 1000000000
group by 1
Run a query to Download Data