MasiTotal Active Addresses Jily
    Updated 2024-08-05
    with tb0 as ( select block_timestamp,
    from_address
    from thorchain.core.fact_transfers
    where block_timestamp::date >= '2024-07-01' and block_timestamp < '2024-08-01'
    UNION
    select block_timestamp,
    from_address
    from thorchain.defi.fact_swaps
    where block_timestamp::date >= '2024-07-01' and block_timestamp < '2024-08-01'
    UNION
    select block_timestamp,
    native_to_address as from_address
    from thorchain.defi.fact_swaps
    where block_timestamp::date >= '2024-07-01' and block_timestamp < '2024-08-01')
    ,
    tb1 as (select
    'ethereum' as blockchain,
    count(DISTINCT from_address) as active_addresses
    from ethereum.core.fact_transactions
    where block_timestamp::date >= '2024-07-01' and block_timestamp < '2024-08-01'
    group by 1
    UNION all
    select
    'base' as blockchain,
    count(DISTINCT from_address) as active_addresses
    from base.core.fact_transactions
    where block_timestamp::date >= '2024-07-01' and block_timestamp < '2024-08-01'
    group by 1
    UNION all
    select
    'aptos' as blockchain,
    count(DISTINCT sender) as active_addresses
    from aptos.core.fact_transactions
    where block_timestamp::date >= '2024-07-01' and block_timestamp < '2024-08-01'
    and TX_TYPE ilike '%user%'
    group by 1
    QueryRunArchived: QueryRun has been archived