Query editor
WITH t AS (SELECT topic0 FROM polygon.logs WHERE block_date = DATE '2025-12-24' AND tx_hash = 0x03437dd22241aec4c05fea2c245ef1ab896afe82e6c36e4ce6feacd30c2565b6 AND contract_address = 0xf695df6c0f3bb45918a7a82e83348fc59517734e LIMIT 1),x AS (SELECT 'polygon' c, contract_address, block_date, block_time, data FROM polygon.logs WHERE block_date BETWEEN DATE '2026-10-14' AND DATE '2026-11-11' AND topic0 = (SELECT topic0 FROM t) AND tx_from = 0x2b3755c065df5c2805be8e69c1496dc7d67f6155UNION ALLSELECT 'ethereum', contract_address, block_date, block_time, data FROM ethereum.logs WHERE block_date BETWEEN DATE '2026-10-14' AND DATE '2026-11-11' AND topic0 = (SELECT topic0 FROM t) AND tx_from = 0x2b3755c065df5c2805be8e69c1496dc7d67f6155)SELECT c, contract_address, block_date d,from_unixtime(CAST(max_by(bytearray_to_uint256(bytearray_substring(data,1,32)), block_time) AS double)) timepoint,CAST(max_by(bytearray_to_uint256(bytearray_substring(data,33,32)), block_time) AS double)/1e6 price,CAST(max_by(bytearray_to_uint256(bytearray_substring(data,65,32)), block_time) AS bigint) roundFROM x GROUP BY 1,2,3 ORDER BY 1,2,3