flyingfishUntitled Query
    Updated 2022-07-11
    with receivers as (
    select
    trunc(block_timestamp, 'day') as date1,
    to_address as address
    from polygon.core.fact_transactions
    where block_timestamp >= '2022-05-01'
    and tx_hash is not null
    ),
    senders as (
    select
    trunc(block_timestamp, 'day') as date1,
    from_address as address
    from polygon.core.fact_transactions
    where block_timestamp >= '2022-05-01'
    and tx_hash is not null
    ),
    temp as (
    select *
    from receivers
    union all
    select * from senders
    )
    select
    date1,
    count(distinct(address))
    from temp
    group by date1
    order by date1 asc

    /* select
    trunc(block_timestamp, 'day') as date1,
    count(DISTINCT(to_address)),
    count(DISTINCT(from_address))
    from polygon.core.fact_transactions
    where block_timestamp >= '2022-07-01'
    Run a query to Download Data