messariBinance Contracts
    Updated 2022-11-10
    WITH base AS (
    select
    DATE(block_timestamp) as day,
    --tx_from AS tx,
    CONTRACT_ADDRESS as contract_addr,
    ORIGIN_FROM_ADDRESS as from_addr

    FROM bsc.core.fact_event_logs
    )
    SELECT
    day,
    count(distinct contract_addr) as contracts_called,
    count(contract_addr) as contract_calls,
    count(distinct from_addr) as contract_callers
    FROM base


    GROUP BY 1
    ORDER BY DAY
    Run a query to Download Data