SolanaAnatomy

What a transaction reacted to, how far behind it landed, and whether it could have seen its trigger on the wire at all — a landing explorer for Solana arbitrage

Rust · axum · SQLite · tonic gRPC · Svelte 5 · MCP · Sep 2026 — in active development, private repo

What it is

An arbitrage bot's result is a position in a block. An explorer will tell you that a transaction landed; it will not tell you what it was chasing, who else was chasing it, or by how many positions it lost. SolanaAnatomy reads every block a watched wallet has a transaction in and answers that for each one: what the transaction reacted to, how far behind it landed, and — when it failed — who took the opportunity first.

I built it to measure Lumen against the bots it competes with. You add a wallet, yours or a rival's, and both get the same dashboard. That is the point: every number is read off the public chain, so a competitor is as legible as your own bot.

The part I could not get from any explorer is the last question in the title. A leader does not publish transactions one at a time, it publishes them in batches of shreds, and a transaction that sits in the same batch as the trade it appears to follow cannot have learned of that trade from the shred stream. SolanaAnatomy records those batch boundaries from my own shred node and draws them over the block.

Wallet dashboard: sent, landed, landed directly behind the trigger, same batch as trigger, fee paid against the trigger's fee, Jito tips; a timeline of sent, landed and directly-behind transactions; a histogram of distance to the trigger; leaders by client; the flow of the triggers
One wallet over fifteen minutes of mainnet. Sent and landed are the easy numbers; the rest of this page is about the third tile — how often it landed directly behind what it reacted to.

Finding the trigger

Nothing on chain names a trigger, so it has to be inferred, and the rule is deliberately small:

The distance d is the landing's index minus the trigger's. d = 1 is directly behind — the backrun position, and the only one that is certain to see the price the trigger left.

The trigger is then labelled by what kind of flow it is: the front-end or router it names (Jupiter, jup.ag, Photon, Axiom, GMGN, the pump.fun app), or arbitrage when the trigger itself traded in a circle. That last label matters: a trigger that is an arbitrage is usually a rival that got to the pool first, not the trade that opened the opportunity. A trigger that is the wallet's own earlier landing is flagged as well, so a bot answering itself does not count as a win.

Table of blocks the wallet landed in: slot, time, leader, index of the landing, index of the trigger, distance d, closest position reachable from shreds, visibility badge, trigger flow and fee
Every landing with its trigger. Index and trigger open a peek at the transaction without leaving the page; the slot opens the block.

Shred batches: what could be seen, and when

Position alone does not say whether a bot was fast. A leader records transactions into entries, serialises a run of entries together, cuts those bytes into shreds, and flags the last shred of the run DATA_COMPLETE. That run is a batch, and it is the unit of visibility: nobody outside the leader can decode any transaction of a batch before its last shred has arrived.

A block of eighteen transactions in three leader batches. The trigger T is at index 3 in batch 0. Landing A at index 4 is in the same batch: the leader packed it before T's shreds existed. Landing B at index 6 is the first transaction of the next batch: two transactions close T's batch, so three positions behind is the closest a shred listener can land.

Once the batches are drawn, two landings that look alike stop looking alike:

Recording the boundaries

JSON-RPC getBlock returns transactions in order and nothing about entries or batches. That structure exists only in the shreds, so it comes from Colibri — my shred node, which joins gossip as a plain unstaked peer, receives turbine shreds, repairs the gaps and streams one gRPC message per completed batch. solana-anatomy record-entries follows that stream and appends one JSON line per completed slot: for every entry its batch number, its length, and the signature of its first transaction.

The screenshots on this page come from a local run against plain RPC with no recording loaded, which is why their visibility column reads “no boundaries”.

Why a transaction failed

A failed arbitrage is included in the block, reverts, and still pays its fee. It also leaves no balance changes, so its pools cannot be read the way a landing's are. They are read off the accounts it asked to write to instead, and the walk back is stricter: an earlier transaction counts only if it moved at least two of those accounts. A pool has two vaults; sharing one account is just a common token account.

CauseWhat the block shows
BeatenAnother wallet traded the same pool within 20 positions ahead. It got there first.
Own copyThe wallet's own earlier transaction in the block already traded the pool. This one was a spare.
StaleThe pool was traded earlier in the block, but more than 20 positions ahead. What it reacted to was long gone.
Nothing aheadNothing in the block traded its pools first. It reacted to something from an earlier block.

The 20-position reach is measured, not guessed. On busy pools some transaction has almost always traded the pool earlier in the block, and 85% of the time it is more than five positions ahead — that is traffic, not a rival. The constant is marked in the code as a stopgap: once boundaries are recorded for every block, the leader's batch replaces it.

For a transaction that was beaten the block view goes one step further and finds what the winner reacted to, so a loss reads as a chain: the trade, the rival directly behind it, my transaction behind the rival. Over a window the same data becomes a table of rivals — which wallets get ahead, and how often.

Failed transactions of the wallet over the window, split by cause — beaten, own copy, stale, nothing ahead — with the fees they cost, the wallets that got ahead most often and the program errors they ended with
Failures by cause, what they cost in fees, and who was ahead.

One block

Every transaction of the block is a bar, left to right in block order. Height is compute units, priority fee, total fee or Jito tip. Colour says what it is: successful, Jito-tipped, failed, a vote, a landing or a failure of the watched wallet, a trigger, a rival that got ahead. Under the bars a strip marks entries that hold more than one transaction and the runs Jito landed together as one bundle, a colour per bundle — a bundle is not something the chain records, so those come from Jito's own bundle explorer. Leader batches, where they were recorded, are the bands behind everything.

Block page: block info with the leader's location on a map, transaction, fee and compute-unit summaries, and the bar chart of the block's transactions with the watched wallet's landing, its trigger and Jito bundles marked
A block opened from a landing. The chart zooms to the landing (amber) and its trigger (blue), joined by a bracket, instead of showing 1,195 one-pixel bars; A marks arbitrages, the coloured strips are Jito bundles.

The chart is a canvas drawn by hand, because a block is a thousand-plus bars that have to follow the mouse. There is a small script in the repository that sweeps the pointer across the chart and times every move against the 16.7 ms frame budget, with and without highlights, so a slow redraw shows up as a number rather than a feeling.

Any index opens a peek over the page: who paid, what the transaction did with tokens hop by hop, and its neighbours in the block. Routes are rebuilt from the parsed inner instructions — every token transfer is filed under the program that invoked it, so a swap on a pool becomes one hop with what was paid and what came back. A transaction whose swaps end in the asset they began with is marked as an arbitrage, wrapped and native SOL counted as one asset.

Peek panel over the dashboard: one transaction with its route hop by hop — programs, amounts paid and received — and the transactions next to it in the block
A peek at the same landing: two swaps on Meteora DLMM, out of wSOL and back into it, directly behind its trigger. The panel lives in the address bar, so Back closes it, a reload keeps it and the link can be shared.

Which leaders, and where

Every landing happens with a leader, and the leader decides more than the bot does. For each one SolanaAnatomy knows the client it runs, from gossip — Agave, Jito, Firedancer, Frankendancer, BAM, Harmonic — whether its TPU address points at a block-building proxy, its stake, and where its node is, from the address it gossips.

That allows one more question: is there a place where this wallet lands directly behind its trigger more often than it should? Asked naively the answer is always “wherever the Jito leaders are”, because how close a landing gets depends on the client first. So a place is compared with its own clients:

The verdict is one of strong, moderate, weak, no place stands out, or cannot be placed for a wallet that rarely lands at d = 1 to begin with. It is an inference and a coarse one, and the page says so above the table: it names a region, not a building.

Where it lands closest: places of the leaders the wallet landed with, each with its landings, the share directly behind the trigger, what its clients give elsewhere, the lower bound and the excess
Fifteen minutes is not enough to place anyone, and the page says exactly that: Frankfurt looks good at 75%, but ten comparable landings are far short of fifty, so no place stands out.

How it is built

Two sources joined into one block: Colibri → record-entries → a boundaries file on one side; JSON-RPC → block cache → source-rpc on the other; Block::with_entries joins them, analysis matches landings and failures, the store keeps them, and one server binary answers the HTTP API, the embedded web UI and MCP

The repository is private, for the same reason Lumen's is. A live instance is deployed at lumen-ray.duckdns.org; if you want access, write to me at hontarvladie@gmail.com or on Telegram, @uxsbo.