Query editor
-- Overview KPIs for the Dormant Wallet Drainer (Ethereum mainnet)-- Attacker: 0xA707034429c8E4E01df056C0CbCf478F0FBeFAd7-- Uses tokens_ethereum.transfers (captures both top-level value AND internal transfers / WETH unwraps)WITH all_in AS (SELECTt."from" AS victim,t.contract_address,t.symbol,CAST(t.amount_raw AS double) / power(10, COALESCE(p.decimals, 18)) AS amount,CAST(t.amount_raw AS double) / power(10, COALESCE(p.decimals, 18)) * COALESCE(p.price, 0) AS usd_value,-- 0x0000... convention for native ETH in tokens_ethereum.transfersCASE WHEN t.contract_address = 0x0000000000000000000000000000000000000000 THEN true ELSE false END AS is_ethFROM tokens_ethereum.transfers tLEFT JOIN prices.usd_latest pON p.contract_address = t.contract_addressAND p.blockchain = 'ethereum'WHERE t.block_time >= TIMESTAMP '2026-04-25'AND t."to" = 0xA707034429c8E4E01df056C0CbCf478F0FBeFAd7),eth_price AS (SELECT price AS eth_usd FROM prices.usd_latestWHERE blockchain = 'ethereum' AND symbol = 'WETH' LIMIT 1)SELECTCOUNT(DISTINCT victim) AS total_unique_victims,SUM(CASE WHEN is_eth THEN amount ELSE 0 END) AS total_eth_drained,SUM(CASE WHEN is_eth THEN amount ELSE 0 END) * (SELECT eth_usd FROM eth_price) AS total_eth_usd,SUM(CASE WHEN NOT is_eth THEN usd_value ELSE 0 END) AS total_erc20_usd,SUM(CASE WHEN is_eth THEN amount ELSE 0 END) * (SELECT eth_usd FROM eth_price)+ COALESCE(SUM(CASE WHEN NOT is_eth THEN usd_value ELSE 0 END), 0) AS total_loss_usd,COUNT(DISTINCT CASE WHEN NOT is_eth THEN contract_address END) AS distinct_erc20_tokens,(SELECT MIN(t.block_time) FROM tokens_ethereum.transfers tWHERE t.block_time >= TIMESTAMP '2026-04-25'AND t."to" = 0xA707034429c8E4E01df056C0CbCf478F0FBeFAd7) AS attack_start,(SELECT MAX(t.block_time) FROM tokens_ethereum.transfers tWHERE t.block_time >= TIMESTAMP '2026-04-25'AND t."to" = 0xA707034429c8E4E01df056C0CbCf478F0FBeFAd7) AS attack_last_seen,(SELECT eth_usd FROM eth_price) AS eth_price_nowFROM all_in