lanoCapybara DAU
    Updated 2024-11-06
    with cb as
    (
    select distinct tx_hash
    from kaia.core.fact_traces
    where to_address IN (
    '0x8a5562d2a17488647381c1a0e9cf527a01b6f3bd',
    '0xa856b5da8e85b23395c17783954edda010317fce',
    '0xab4fc22974eacc7f3a18fa89fef5a5f9030275d7',
    '0x2948f932a2a841b91cf74114f5e58b454201e914',
    '0x3ce1aa52eeaf57a355939c09ac76f03f01988f13'

    ) OR from_address IN (
    '0x8a5562d2a17488647381c1a0e9cf527a01b6f3bd',
    '0xa856b5da8e85b23395c17783954edda010317fce',
    '0xab4fc22974eacc7f3a18fa89fef5a5f9030275d7',
    '0x2948f932a2a841b91cf74114f5e58b454201e914',
    '0x3ce1aa52eeaf57a355939c09ac76f03f01988f13'

    )
    )

    SELECT
    date_trunc('day', tx.block_timestamp) as date,
    count(distinct tx.from_address) as "DAU"
    FROM
    cb
    LEFT JOIN kaia.core.fact_transactions tx ON cb.tx_hash = tx.tx_hash
    where
    tx.block_timestamp<CURRENT_DATE
    group by 1
    order by 1 asc

    QueryRunArchived: QueryRun has been archived