Query editor
SELECTconcat('0x',to_hex(substr(topic2, 13, 20) -- bytes 13–32 = the 20-byte solution address)) AS solution_addressFROM sonic.logsWHERE contract_address = 0x8888ff459da48e5c9883f893fc8653c8e55f8888ORDER BY block_number DESC
Query editor
1SELECT2concat(3'0x',4to_hex(5substr(topic2, 13, 20) -- bytes 13–32 = the 20-byte solution address6)7) AS solution_address8FROM sonic.logs9WHERE contract_address = 0x8888ff459da48e5c9883f893fc8653c8e55f888810ORDER BY block_number DESC