SajjadiiiTotal Addresses copy
    Updated 2025-05-14
    -- forked from Masi / Total Addresses @ https://flipsidecrypto.xyz/Masi/q/bvuH7-Nl3sKV/total-addresses

    with tb0_0 AS (
    SELECT
    block_timestamp,
    BLOCK_ID,
    tx_hash,
    ifnull(tx:actions[0]:Delegate:delegate_action:receiver_id::string, TX_RECEIVER)::string as receiver,
    ifnull(tx:actions[0]:Delegate:delegate_action:sender_id::string, TX_SIGNER)::string AS user
    FROM near.core.fact_transactions
    where block_timestamp::date >= current_date - 30
    )
    ,
    tb0 as ( select block_timestamp,
    from_address
    from thorchain.core.fact_transfers
    where block_timestamp::date >= current_date - 30
    UNION
    select block_timestamp,
    from_address
    from thorchain.defi.fact_swaps
    where block_timestamp::date >= current_date - 30
    UNION
    select block_timestamp,
    native_to_address as from_address
    from thorchain.defi.fact_swaps
    where block_timestamp::date >= current_date - 30)
    ,
    tb1 as (select
    'ethereum' as blockchain,
    count(DISTINCT from_address) as active_addresses
    from ethereum.core.fact_transactions
    where block_timestamp::date >= current_date - 30
    group by 1
    UNION all
    select
    Last run: 19 days ago
    TYPE
    BLOCKCHAIN
    ACTIVE_ADDRESSES
    1
    Other Chainssolana80510564
    2
    Other Chainsnear44029216
    3
    Kaiakaia21751765
    4
    Other Chainsbase20317954
    5
    Other Chainsaptos10108853
    6
    Other Chainsethereum6636803
    7
    Other Chainspolygon5198649
    8
    Other ChainsCore5084078
    9
    Other Chainsarbitrum3545968
    10
    Other Chainssei3350992
    11
    Other Chainsoptimism2243016
    12
    Other Chainsavalanche1913460
    13
    Other ChainsAleo61455
    14
    Other Chainsthorchain60189
    14
    469B
    357s