Query editor
WITH ioc AS (SELECT address FROM query_9053100),products (address, name) AS (VALUES(0x133243d447026345c2b368d7ffe435dbe3c566eb, 'CPPW'),(0xbdea0d1bcc5966192b070fdf62ab4ef5b4420cff, 'Commerce Payments AuthCaptureEscrow'),(0x0e3df9510de65469c4518d7843919c0b8c7a7757, 'Commerce Payments ERC3009PaymentCollector')),base_bridges_l1 (address, name) AS (VALUES(0x49048044d57e1c92a77f79988d21fa8faf74e97e, 'Base OptimismPortal (L1)'),(0x3154cf16ccdb4c6d922629664174b904d80f2c35, 'Base L1StandardBridge (L1)'),(0x5c7bcd6e7de5423a257d81b442095a1a6ced35c5, 'Across SpokePool (Ethereum)')),base_txs AS (SELECT hash, block_time, type, "from", "to", value, successFROM base.transactionsWHERE block_date >= DATE '2026-10-29' AND ("from" IN (SELECT address FROM ioc) OR "to" IN (SELECT address FROM ioc))),base_traces AS (SELECT tx_hash, block_time, "from", "to", value, varbinary_substring(input, 1, 4) AS selectorFROM base.tracesWHERE block_date >= DATE '2026-10-29' AND successAND ("from" IN (SELECT address FROM ioc) OR "to" IN (SELECT address FROM ioc))),ioc_tx_hashes AS (SELECT hash AS tx_hash FROM base_txs UNION SELECT tx_hash FROM base_traces),product_touch AS (SELECT tr.tx_hash, tr.block_time, tr."from", tr."to", p.nameFROM base.traces tr JOIN products p ON p.address = tr."to" OR p.address = tr."from"WHERE tr.block_date >= DATE '2026-10-29' AND tr.tx_hash IN (SELECT tx_hash FROM ioc_tx_hashes)),base_xfers AS (SELECT block_time, tx_hash, symbol, amount, amount_usd, "from", "to", tx_toFROM tokens.transfersWHERE blockchain = 'base' AND block_month >= DATE '2026-10-01' AND block_date >= DATE '2026-10-29'AND ("from" IN (SELECT address FROM ioc) OR "to" IN (SELECT address FROM ioc))),l1_to_base AS (SELECT tr.tx_hash, tr.block_time, tr."from", tr."to", CAST(tr.value AS double) / 1e18 AS eth, b.nameFROM ethereum.traces tr JOIN base_bridges_l1 b ON b.address = tr."to"WHERE tr.block_date >= DATE '2026-10-29' AND tr.successAND (tr."from" IN (SELECT address FROM ioc) OR tr.tx_hash IN (SELECT hash FROM ethereum.transactions WHERE block_date >= DATE '2026-10-29' AND "from" IN (SELECT address FROM ioc))))SELECT 'BASE_TX' AS kind, block_time, hash AS tx_hash, type AS detail, "from", "to", CAST(value AS double) / 1e18 AS amount, CAST(NULL AS double) AS amount_usd FROM base_txsUNION ALL SELECT 'BASE_TRACE_VALUE', block_time, tx_hash, CAST(selector AS varchar), "from", "to", CAST(value AS double) / 1e18, NULL FROM base_traces WHERE value > UINT256 '0'UNION ALL SELECT 'BASE_TOKEN_XFER', block_time, tx_hash, symbol, "from", "to", amount, amount_usd FROM base_xfersUNION ALL SELECT 'COINBASE_PRODUCT_TOUCH', block_time, tx_hash, name, "from", "to", NULL, NULL FROM product_touchUNION ALL SELECT 'L1_DEPOSIT_TO_BASE_BRIDGE', block_time, tx_hash, name, "from", "to", eth, NULL FROM l1_to_baseORDER BY 1, 2