mlhFLOW WALLET
Updated 2022-07-11Copy Reference Fork
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 wallets as (
SELECT
PROPOSER,
PAYER,
a.value as AUTHORIZER,
TX_ID
FROM flow.core.fact_transactions t, table(flatten(t.AUTHORIZERS)) a
)
SELECT *
FROM (
(SELECT PROPOSER as wallet,
'PROPOSER' as type,
count(tx_id) as count
FROM wallets
group by 1,2
order by 3 desc
limit 10)
UNION ALL
(SELECT PAYER as wallet,
'PAYER' as type,
count(tx_id) as count
FROM wallets
group by 1,2
order by 3 desc
limit 10)
UNION ALL
(SELECT AUTHORIZER as wallet,
'AUTHORIZER' as type,
count(tx_id) as count
FROM wallets
group by 1,2
order by 3 desc
limit 10)
)
ORDER BY 3 DESC
Run a query to Download Data