Query editor
WITH get_package_unnest AS (SELECTreplace(package_param, ' ', '') AS package_paramFROM UNNEST(SPLIT('{{package_param}}', ';')) AS t(package_param))SELECT FROM_UNIXTIME(timestamp_ms/1000) as timestamp,date as block_date,checkpoint,package as package_id,module,event_type as type,event_json as fields,sender,event_index as event_seq,transaction_digest as digestFROM sui.eventsWHERE date >= GREATEST(TIMESTAMP '{{timestamp}}',TIMESTAMP '2026-01-01')AND date >= TIMESTAMP '{{project_start_timestamp}}'AND EXISTS (SELECT 1FROM get_package_unnest tWHERE STARTS_WITH(replace(event_type, ' ', ''), t.package_param))