freemartianActive Users
    Updated 2022-06-17
    with native as ( select distinct eth_from_address as sender, count(tx_hash) as "Interaction Count"
    from ethereum.core.ez_eth_transfers
    where origin_to_address in (lower('0x52ec2F3d7C5977A8E558C8D9C6000B615098E8fC'), lower('0x99C9fc46f92E8a1c0deC1b1747d010903E884bE1')) group by sender
    ),
    hop as (
    select distinct origin_from_address as bridgoor, count(tx_hash) as "Interaction Count"
    from ethereum.core.fact_event_logs
    where origin_to_address = lower('0xb8901acb165ed027e32754e0ffe830802919727f')
    and event_name = 'TransferSentToL2'
    and EVENT_INPUTS:chainId ='10'
    group by bridgoor
    )

    select count(sender) as count, 'Active Native Users' as label
    from native
    where "Interaction Count" >= 5
    union
    select count(bridgoor) as count, 'Active Hop Users' as label
    from hop
    where "Interaction Count" >= 5


    Run a query to Download Data