namanasync2024-07-08 01:23 PM
    Updated 2024-07-08
    SELECT
    "N_TX",
    "MIN_TS",
    "MAX_TS",
    "N_TO_ADDR",
    "MIN_TIME_DELTA",
    "FROM_ADDRESS"
    FROM
    (
    WITH diffs as (
    select
    from_address,
    TIMESTAMPDIFF(
    SECONDS,
    LAG(block_timestamp, 1) OVER (
    PARTITION BY from_address
    ORDER BY
    block_timestamp
    ),
    block_timestamp
    ) time_between_txs
    from
    arbitrum.core.fact_transactions
    where
    (
    block_number >= 193371117
    and block_number <= 193375117
    )
    )



    SELECT
    count(tx_hash) as n_tx,
    min(block_timestamp) as min_ts,
    max(block_timestamp) as max_ts,
    QueryRunArchived: QueryRun has been archived