KaskoazulNFT Activity - user metrics
    Updated 2022-09-19
    with bsc as (
    select block_timestamp::date as fecha,
    count (distinct tx_hash) as n_txn,
    count (distinct origin_to_address) as n_unique_wallets,
    count (distinct origin_from_address) as sellers
    from bsc.core.fact_event_logs a
    left join bsc.core.dim_labels b
    on a.contract_address = b.address
    where b.label_type = 'nft'
    group by fecha
    order by fecha desc
    ),

    polygon as (
    select block_timestamp::date as fecha,
    count (distinct tx_hash) as n_txn,
    count (distinct origin_to_address) as n_unique_wallets,
    count (distinct origin_from_address) as sellers
    from polygon.core.fact_event_logs a
    left join polygon.core.dim_labels b
    on a.contract_address = b.address
    where b.label_type = 'nft'
    group by fecha
    order by fecha desc
    ),

    optimism as (
    select block_timestamp::date as fecha,
    count (distinct tx_hash) as n_txn,
    count (distinct origin_to_address) as n_unique_wallets,
    count (distinct origin_from_address) as sellers
    from optimism.core.fact_event_logs a
    left join optimism.core.dim_labels b
    on a.contract_address = b.address
    where b.label_type = 'nft'
    group by fecha
    Run a query to Download Data