peteerDaily transfer rate of NFTs on 3 chain
    Updated 2022-09-07
    with data_raw_opt as (
    select
    block_timestamp::date as date,
    count(distinct tx_hash) as total
    from
    optimism.core.fact_event_logs
    where
    topics[0] = '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef'
    and
    event_inputs:tokenId is not null
    group by 1
    ),
    data_all_opt as (
    select
    block_timestamp::date as date,
    count(distinct tx_hash) as total
    from
    optimism.core.fact_transactions
    where
    status = 'SUCCESS'
    group by 1
    )
    , data_opt as (
    select
    a.date,
    (a.total/b.total)*100 as rate
    from
    data_raw_opt a join data_all_opt b on a.date = b.date
    )
    , data_raw_arb as (
    select
    block_timestamp::date as date,
    count(distinct tx_hash) as total
    from
    arbitrum.core.fact_event_logs
    where
    Run a query to Download Data