Query editor
-- 04_actor-concentration.sql-- Phase-1: WHO captures the arbs. Searcher leaderboard across all live pools, with the-- economics + competition signals needed to plan a strategy against them.---- Pools: config/live-pools.json. Window: 2026-06-16 00:00 .. 2026-07-16 00:00 UTC (30d).-- Tables: dex.trades + base.transactions. Builds on the 02/03 arb pipeline.---- Per searcher (tx_from EOA): net profit captured, share of total, running cumulative share-- (how fast the top few own it), backrun mix, gas burned, and AVG PRIORITY FEE bid (gwei) ---- on Base's single-sequencer ordering, priority fee is the auction you must win, so this is-- the "how hard is it to outbid them" number. active_days + contracts show operation scale.---- ARTIFACT FILTER (added 2026-07-22): the net-balance method reports a FALSE POSITIVE-- whenever the arb's input token has no Dune `amount_usd` price -- the input leg contributes-- nothing and the entire output leg reads as free profit. Signature: profit ~= the largest-- leg. Base-wide this is 93% of detected arbs and it dominated the top of this leaderboard.-- Rows are now dropped when profit > 25% of the largest leg (no real arb on a liquid pair-- clears 25% of notional) or the trade is < $50.---- FLEET COLUMNS (added 2026-07-22): eoas_on_contract / arbs_on_contract expose the operator-- behind an EOA. Most "one-shot" searchers here are a fleet burning a fresh EOA per trade ---- rank by the contract, not the EOA, to see true concentration.---- NOTE: grouped by tx_from EOA. One operator may run several EOAs / a shared contract, so-- true operator concentration is >= what's shown. "private vs public orderflow" (an Ethereum-- MEV-boost concept) does not map to Base's centralized sequencer -- priority fee replaces it.WITH arb_tx AS (SELECT DISTINCT tx_hashFROM dex.tradesWHERE blockchain = 'base'AND block_month IN (DATE '2026-06-01', DATE '2026-07-01')AND block_time >= TIMESTAMP '2026-06-16 00:00:00'AND block_time < TIMESTAMP '2026-07-16 00:00:00'AND project_contract_address IN (0xd0b53D9277642d899DF5C87A3966A349A798F224,0xcDAC0d6c6C59727a65F871236188350531885C43,0x47cA96Ea59C13F72745928887f84C9F52C3D7348,0x861A2922bE165a5Bd41b1E482B49216b465e1B5F)),legs AS (SELECTt.tx_hash, t.block_number, t.evt_index,t.project_contract_address AS pool,t.token_bought_address, t.token_bought_amount,t.token_sold_address, t.token_sold_amount,t.amount_usdFROM dex.trades tJOIN arb_tx a ON t.tx_hash = a.tx_hashWHERE t.blockchain = 'base'AND t.block_month IN (DATE '2026-06-01', DATE '2026-07-01')AND t.block_time >= TIMESTAMP '2026-06-16 00:00:00'AND t.block_time < TIMESTAMP '2026-07-16 00:00:00'),flows AS (SELECT tx_hash, token_bought_address AS token, token_bought_amount AS amt FROM legsUNION ALLSELECT tx_hash, token_sold_address AS token, -token_sold_amount AS amt FROM legs),