yolo_gamesGelato VRF Fees YOLO + YOLO Play
    Updated 2024-08-01
    SELECT day, SUM("Fee") as "VRF Total Fee" FROM (
    SELECT DATE_TRUNC('day', a.block_timestamp) as day, sum(1.08*TX_FEE_PRECISE) as "Fee"
    FROM blast.core.fact_event_logs a
    INNER JOIN blast.core.fact_transactions b ON a.TX_HASH = b.TX_HASH
    INNER JOIN blast.core.fact_event_logs c ON a.TX_HASH = c.TX_HASH
    WHERE a.contract_address = LOWER('0xfec1e33ebe899906ff63546868a26e1028700b0e')
    AND a.tx_status = 'SUCCESS'
    AND a.topics[0] = '0xc6cfec28363edf86fe132edcedb30ccc6dbb89a7ec5f428aaeeb8ae5d901537d' -- LogExecWithSig
    AND a.origin_from_address = LOWER('0x417B4Adc279743FC49F047C323FC668db9E600D8')
    AND c.CONTRACT_ADDRESS = LOWER('0x0000000000E14E87e5c80A8A90817308fFF715d3')
    GROUP BY 1
    UNION ALL
    SELECT DATE_TRUNC('day', a.block_timestamp) as day, sum(1.08*TX_FEE_PRECISE) as "Fee"
    FROM blast.core.fact_event_logs a
    INNER JOIN blast.core.fact_transactions b ON a.TX_HASH = b.TX_HASH
    INNER JOIN blast.core.fact_event_logs c ON a.TX_HASH = c.TX_HASH
    WHERE a.contract_address = LOWER('0xfec1e33ebe899906ff63546868a26e1028700b0e')
    AND a.tx_status = 'SUCCESS'
    AND a.topics[0] = '0xc6cfec28363edf86fe132edcedb30ccc6dbb89a7ec5f428aaeeb8ae5d901537d' -- LogExecWithSig
    AND a.origin_from_address = LOWER('0x417B4Adc279743FC49F047C323FC668db9E600D8')
    AND c.CONTRACT_ADDRESS = LOWER('0xdCCD7560C173eC7043Ac15E52608e818746e4992')
    GROUP BY 1
    )
    GROUP BY 1
    ORDER BY 1 ASC






    QueryRunArchived: QueryRun has been archived