Query editor
WITH reg AS (SELECT * FROM query_8051039WHERE blockchain = 'robinhood' AND platform IN ('cielo','debot','definitive','bloom')),deployer_family AS (SELECT r.platform, ct.address AS routerFROM robinhood.creation_traces ctJOIN reg r ON r.anchor_type = 'deployer' AND ct."from" = r.anchor_addressLEFT JOIN reg x ON x.anchor_type = 'deployer_exclude' AND x.platform = r.platform AND x.anchor_address = ct.addressWHERE x.anchor_address IS NULL),bot_txs AS (SELECT t.hash AS tx_hash, f.platform, CAST(NULL AS varbinary) AS walletFROM robinhood.transactions tJOIN deployer_family f ON f.router = t."to"WHERE t.block_date >= DATE '2026-11-11'AND t.block_date < DATE '2026-11-16'UNION ALLSELECT t.hash, r.platform, CAST(NULL AS varbinary)FROM robinhood.transactions tJOIN reg r ON r.anchor_type = 'router' AND t."to" = r.anchor_addressWHERE t.block_date >= DATE '2026-11-11'AND t.block_date < DATE '2026-11-16'UNION ALLSELECT tr.tx_hash, r.platform, CAST(NULL AS varbinary)FROM robinhood.traces trJOIN reg r ON r.anchor_type = 'fee_trace' AND tr."to" = r.anchor_addressWHERE tr.block_date >= DATE '2026-11-11'AND tr.block_date < DATE '2026-11-16'AND tr.value > 0AND tr.successUNION ALLSELECT tr.tx_hash, f.platform, tr."to"FROM robinhood.traces trJOIN (SELECT r.platform, ct.addressFROM robinhood.creation_traces ctJOIN reg r ON r.anchor_type = 'account_factory' AND ct."from" = r.anchor_address) f ON tr."to" = f.addressWHERE tr.block_date >= DATE '2026-11-11'AND tr.block_date < DATE '2026-11-16'AND tr.successUNION ALLSELECT tr.tx_hash, r.platform, CAST(NULL AS varbinary)FROM robinhood.traces trJOIN reg r ON r.anchor_type = 'fee_recipient' AND tr."to" = r.anchor_addressWHERE tr.block_date >= DATE '2026-11-11'AND tr.block_date < DATE '2026-11-16'AND tr.value > 0AND tr.successUNION ALLSELECT t.evt_tx_hash, r.platform, CAST(NULL AS varbinary)FROM erc20_robinhood.evt_transfer tJOIN reg r ON r.anchor_type = 'fee_recipient' AND t."to" = r.anchor_addressWHERE t.evt_block_date >= DATE '2026-11-11'AND t.evt_block_date < DATE '2026-11-16'UNION ALLSELECT t.hash, r.platform, CAST(NULL AS varbinary)FROM robinhood.transactions tJOIN reg r ON r.anchor_type = 'calldata_tag' AND t."to" = r.anchor_address