SpecterKey claimed
    Updated 2024-08-10
    WITH Matrix_log As (
    SELECT
    BLOCK_TIMESTAMP,
    tx_hash,
    CONTRACT_ADDRESS,
    EVENT_NAME,
    decoded_log as log,
    log:by AS Address
    FROM
    polygon.core.fact_decoded_event_logs
    where
    Contract_address = '0x0f3284bfebc5f55b849c8cf792d39cc0f729e0bc'
    And log:eventId = 'claimKey'
    )
    SELECT
    Date_trunc('Day', BLOCK_TIMESTAMP) AS Date,
    COUNT(*) AS Key_claimed,
    SUM(COUNT(*)) OVER (
    ORDER BY
    Date
    ) AS Total_key
    FROM
    Matrix_log
    GROUP BY
    Date
    order by
    date desc
    QueryRunArchived: QueryRun has been archived