poseidon-UtCsf42024-01-17 07:13 PM
    Updated 2024-01-23
    SELECT
    date_trunc('day',a.block_timestamp) as day,
    count(distinct a.PUBKEY_SCRIPT_ADDRESS) as active_users_address
    -- ,
    -- count(distinct b.ADDRESS_GROUP) as active_users_group,
    -- count(distinct b.DIM_ENTITY_CLUSTERS_ID) as active_users_DIM_ENTITY_CLUSTERS_ID

    FROM bitcoin.core.fact_inputs as a
    left join bitcoin.core.dim_entity_clusters as b on a.PUBKEY_SCRIPT_ADDRESS=b.address
    GROUP BY 1


    select current_date
    Last run: over 1 year ago
    DAY
    ACTIVE_USERS_ADDRESS
    ACTIVE_USERS_GROUP
    ACTIVE_USERS_DIM_ENTITY_CLUSTERS_ID
    1
    2022-12-06 00:00:00.00062929551218491170
    2
    2019-12-04 00:00:00.00049518052470325119
    3
    2015-09-02 00:00:00.00021248027797134559
    4
    2017-12-30 00:00:00.00058492738565344080
    5
    2016-06-16 00:00:00.00035514433695234006
    6
    2016-12-01 00:00:00.00042387537250291648
    7
    2021-06-17 00:00:00.00053923847242415586
    8
    2023-08-11 00:00:00.00065408443140398893
    9
    2019-04-19 00:00:00.00050546942516359941
    10
    2017-01-24 00:00:00.00048365444659333553
    11
    2023-05-30 00:00:00.00063143743644380343
    12
    2021-03-05 00:00:00.00068489667495514424
    13
    2016-01-25 00:00:00.00036267058169278505
    14
    2016-12-30 00:00:00.00043094145098277871
    15
    2021-08-15 00:00:00.00049124837438392519
    16
    2015-06-10 00:00:00.00025570638867215634
    17
    2023-09-16 00:00:00.00072185134712307493
    18
    2020-05-27 00:00:00.00060821363017454229
    19
    2017-09-17 00:00:00.00037172233862263000
    20
    2014-12-16 00:00:00.00018676526241151549
    ...
    5493
    244KB
    281s