HolonymWallet activity by transactions- zkpass
    Updated 2025-02-03
    -- forked from Wallet activity by transactions @ https://flipsidecrypto.xyz/edit/queries/88c03e89-306d-4897-9f3b-eee43ff31317

    with zkPass as ( select
    d.value:"USER" as address
    from (
    select livequery.live.udf_api(
    'https://flipsidecrypto.xyz/api/v1/queries/95dc91ce-8ff4-49be-b520-d722e29143dc/data/latest'
    ):"data" as data
    ) responses join lateral flatten (input => responses.data) d
    ),



    total as (

    select * from zkPass

    ),

    t2 as(
    select
    from_address as users,
    Count(distinct tx_hash) as no_txn


    -- from total join ethereum.core.fact_transactions on (address = from_address)
    from ethereum.core.fact_transactions

    where from_address in (select address from total)
    group by 1

    union all

    select
    from_address as users,
    Count(distinct tx_hash) as no_txn
    QueryRunArchived: QueryRun has been archived