SpiltadavidUntitled Query
    Updated 2022-09-20

    with
    ethereum as (
    select
    distinct event_inputs:addr as contract
    from ethereum.core.fact_event_logs
    where event_name = 'MarketCreated'
    and origin_to_address = '0x7603a35af5cf10b113f167d424eb75bb7062c8ce'
    ),


    eth as (
    select
    date_trunc('week', block_timestamp) as week,
    date_trunc('month', block_timestamp) as month,
    count (distinct origin_from_address) as wallet,
    count (distinct tx_hash) as tx_count
    from ethereum.core.fact_event_logs where origin_to_address in (select contract from ethereum)
    and origin_function_signature in ('0xdc97e082' , '0x29762960') -- Non ETH Token and ETH token
    group by 1,2
    ),




    polygon as (
    select distinct event_inputs:addr as contract
    from polygon.core.fact_event_logs
    where event_name = 'MarketCreated'
    and origin_to_address = '0xc040f84cf7046409f92d578ef9040fe45e6ef4be'

    ),


    poly as (

    Run a query to Download Data