and1234512345Getting Started
    Updated 2024-10-30

    -- Get started with Flipside by running your first query:
    -- the SQL statement below will get you a list of NFT
    -- platforms on Ethereum, ranked by how many sales
    -- they've had in the past month.

    -- Be sure to see our documentation for more guidance,
    -- including a full walkthrough of the app:
    -- https://docs.flipsidecrypto.xyz/our-app/getting-started

    with transactions as (select block_timestamp::date as date,
    count(DISTINCT block_number) as produced_blocks,
    count(DISTINCT tx_hash) as transactions,
    count(DISTINCT from_address) as users,
    transactions/users as avg_tx_per_user,
    sum(tx_fee) as total_fees,
    avg(tx_fee) as avg_fee,
    max(tx_fee) as max_fee,
    median(tx_fee) as median_fee,
    min(tx_fee) as min_fee
    from sei.core_evm.fact_transactions
    where status = 'SUCCESS'
    and block_timestamp::date >= '2022-05-27'
    group by 1)
    ,
    blocks as ( select block_timestamp::Date as date,
    count(DISTINCT block_number) as "Produced Blocks"
    from sei.core_evm.fact_blocks
    group by 1)

    select a.*,
    "Produced Blocks"
    from transactions a join blocks b on a.date= b.date



    QueryRunArchived: QueryRun has been archived