shreyash-5873Whale Anchor Interactions
Updated 2022-05-02
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
›
⌄
WITH WHALES AS (SELECT
address,
date,
sum(balance_usd) AS BALANCE
FROM terra.daily_balances
WHERE date = CURRENT_DATE() AND BALANCE >= 50000
GROUP BY date, address),
ANCHOR_CONTRACTS AS (SELECT
*
FROM terra.labels
WHERE label::string = 'anchor'
ORDER BY label_type DESC)
SELECT
count(distinct msg_value:sender::string) as whale_count
FROM terra.msgs m
INNER JOIN WHALES w
ON m.msg_value:sender::string = w.address
INNER JOIN ANCHOR_CONTRACTS ac
ON ac.address = m.msg_value:contract;
Run a query to Download Data