Query editor
-- consider overlaps or other logic for full minutesWITH all_traces as (SELECT block_time, to, tx_success, tx_hash, error, input, 'ethereum' as chain, output, gas, gas_used, call_typeFROM ethereum.tracesWHERE "from" = 0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE AND starts_with(input, 0x00a32e6c)AND DATE_TRUNC('day', block_time) >= current_date - INTERVAL '{{from_day}}' DAYAND DATE_TRUNC('day', block_time) <= current_date - INTERVAL '{{to_day}}' DAYUNION ALLSELECT block_time, to, tx_success, tx_hash, error, input, 'arbitrum' as chain, output, gas, gas_used, call_typeFROM arbitrum.tracesWHERE "from" = 0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE AND starts_with(input, 0x00a32e6c)AND DATE_TRUNC('day', block_time) >= current_date - INTERVAL '{{from_day}}' DAYAND DATE_TRUNC('day', block_time) <= current_date - INTERVAL '{{to_day}}' DAYUNION ALLSELECT block_time, to, tx_success, tx_hash, error, input, 'optimism' as chain, output, gas, gas_used, call_typeFROM optimism.tracesWHERE "from" = 0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE AND starts_with(input, 0x00a32e6c)AND DATE_TRUNC('day', block_time) >= current_date - INTERVAL '{{from_day}}' DAYAND DATE_TRUNC('day', block_time) <= current_date - INTERVAL '{{to_day}}' DAYUNION ALLSELECT block_time, to, tx_success, tx_hash, error, input, 'base' as chain, output, gas, gas_used, call_typeFROM base.tracesWHERE "from" = 0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE AND starts_with(input, 0x00a32e6c)AND DATE_TRUNC('day', block_time) >= current_date - INTERVAL '{{from_day}}' DAYAND DATE_TRUNC('day', block_time) <= current_date - INTERVAL '{{to_day}}' DAYUNION ALLSELECT block_time, to, tx_success, tx_hash, error, input, 'avalanche_c' as chain, output, gas, gas_used, call_typeFROM avalanche_c.tracesWHERE "from" = 0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE AND starts_with(input, 0x00a32e6c)AND DATE_TRUNC('day', block_time) >= current_date - INTERVAL '{{from_day}}' DAYAND DATE_TRUNC('day', block_time) <= current_date - INTERVAL '{{to_day}}' DAYUNION ALLSELECT block_time, to, tx_success, tx_hash, error, input, 'polygon' as chain, output, gas, gas_used, call_typeFROM polygon.tracesWHERE "from" = 0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE AND starts_with(input, 0x00a32e6c)AND DATE_TRUNC('day', block_time) >= current_date - INTERVAL '{{from_day}}' DAYAND DATE_TRUNC('day', block_time) <= current_date - INTERVAL '{{to_day}}' DAYUNION ALLSELECT block_time, to, tx_success, tx_hash, error, input, 'bnb' as chain, output, gas, gas_used, call_typeFROM bnb.tracesWHERE "from" = 0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE AND starts_with(input, 0x00a32e6c)AND DATE_TRUNC('day', block_time) >= current_date - INTERVAL '{{from_day}}' DAYAND DATE_TRUNC('day', block_time) <= current_date - INTERVAL '{{to_day}}' DAYUNION ALLSELECT block_time, to, tx_success, tx_hash, error, input, 'gnosis' as chain, output, gas, gas_used, call_typeFROM gnosis.tracesWHERE "from" = 0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE AND starts_with(input, 0x00a32e6c)AND DATE_TRUNC('day', block_time) >= current_date - INTERVAL '{{from_day}}' DAYAND DATE_TRUNC('day', block_time) <= current_date - INTERVAL '{{to_day}}' DAYUNION ALLSELECT block_time, to, tx_success, tx_hash, error, input, 'blast' as chain, output, gas, gas_used, call_typeFROM blast.tracesWHERE "from" = 0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE AND starts_with(input, 0x00a32e6c)AND DATE_TRUNC('day', block_time) >= current_date - INTERVAL '{{from_day}}' DAYAND DATE_TRUNC('day', block_time) <= current_date - INTERVAL '{{to_day}}' DAYUNION ALLSELECT block_time, to, tx_success, tx_hash, error, input, 'mantle' as chain, output, gas, gas_used, call_typeFROM mantle.tracesWHERE "from" = 0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE AND starts_with(input, 0x00a32e6c)AND DATE_TRUNC('day', block_time) >= current_date - INTERVAL '{{from_day}}' DAY