SajjadiiiTotal Addresses copy
    Updated 12 hours ago
    -- 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: about 12 hours ago
    TYPE
    BLOCKCHAIN
    ACTIVE_ADDRESSES
    1
    Other Chainssolana72248168
    2
    Other Chainsnear48215627
    3
    Kaiakaia21464151
    4
    Other Chainsbase16631233
    5
    Other Chainsaptos14080312
    6
    Other Chainsethereum6762184
    7
    Other Chainspolygon5730420
    8
    Other Chainsarbitrum5160328
    9
    Other ChainsCore4496167
    10
    Other Chainssei2429079
    11
    Other Chainsoptimism922269
    12
    Other Chainsavalanche846148
    13
    Other ChainsAleo142595
    14
    Other Chainsblast117095
    15
    Other Chainsthorchain55107
    15
    500B
    255s