Query editor
-- Robinhood Chain: daily trading volume per app (GMGN vs Binance Wallet vs other terminals)-- Attribution:-- binance wallet -> Binance DEX Router as direct tx target-- everything else -> anchor registry query_8051039 (router / fee_recipient)WITH reg AS (SELECT platform, anchor_type, anchor_addressFROM query_8051039WHERE blockchain = 'robinhood'),attrib AS (SELECT t.hash AS tx_hash, 'binance wallet' AS appFROM robinhood.transactions tWHERE t.block_date >= DATE '2026-07-18'AND t.block_date < CURRENT_DATEAND t."to" = 0xb300000b72DEAEb607a12d5f54773D1C19c7028dUNION ALLSELECT t.hash, r.platformFROM robinhood.transactions tJOIN reg r ON r.anchor_type = 'router' AND t."to" = r.anchor_addressWHERE t.block_date >= DATE '2026-07-18'AND t.block_date < CURRENT_DATEUNION ALLSELECT tr.tx_hash, r.platformFROM robinhood.traces trJOIN reg r ON r.anchor_type = 'fee_recipient' AND tr."to" = r.anchor_addressWHERE tr.block_date >= DATE '2026-07-18'AND tr.block_date < CURRENT_DATEAND tr.value > 0AND tr.successUNION ALLSELECT e.evt_tx_hash, r.platformFROM erc20_robinhood.evt_transfer eJOIN reg r ON r.anchor_type = 'fee_recipient' AND e."to" = r.anchor_addressWHERE e.evt_block_date >= DATE '2026-07-18'AND e.evt_block_date < CURRENT_DATE),attrib_dedup AS (SELECT DISTINCT tx_hash, app FROM attrib),legs AS (SELECTd.block_date,d.tx_hash,d.tx_from,d.token_sold_address,d.token_bought_address,d.amount_usd,a.appFROM dex.trades dJOIN attrib_dedup a ON a.tx_hash = d.tx_hashWHERE d.blockchain = 'robinhood'AND d.block_date >= DATE '2026-07-18'AND d.block_date < CURRENT_DATE),