piperArbitrum - Open Analyitics Bounty: Daily Usage of Contract Types by Number of Transactions / Users
    Updated 2022-07-26

    SELECT
    logs.block_timestamp::date AS date,
    labels.label_type AS type,
    COUNT(DISTINCT ORIGIN_FROM_ADDRESS) as users,
    COUNT(DISTINCT(logs.tx_hash)) AS number_of_transactions
    FROM
    arbitrum.core.fact_event_logs logs
    JOIN
    arbitrum.core.dim_labels labels
    ON
    logs.contract_address = labels.address
    WHERE
    labels.label_type IS NOT NULL
    GROUP BY date, type

    Run a query to Download Data