mlhFLOW WALLET
    Updated 2022-07-11
    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