Launch app
Cover: 29,183 bytes: the routing engine that lives on-chain, measured against the field

29,183 bytes: the routing engine that lives on-chain, measured against the field

The full routing intelligence — discovery, quoting, believability filtering, split allocation, multi-hop assembly, V4 derivation — is 29,183 bytes of EVM bytecode. Same fork, replaying the leading commercial router's own calldata: 2.4–10.9× less gas per leg, reference at optimizer_runs = 999999.

Known formally as The Execution Layer, Measured in the BlazePhoenix whitepaper.

BlazePhoenix Engineering · article updated 2026-08-26 · site dataset through 2026-11-30 · 9 min · written from the deployed bytecode

At a glance
LevelAdvanced
Formal nameThe Execution Layer, Measured
Reading time9 min
Sections5
Sources cited1
Updated2026-08-26

By Mitra (@Sigmacrit) — anonymous developer of the BlazePhoenix protocol. The code is the résumé.

Abstract in 15 languages · resumo · resumen · 摘要 · 要旨 · ملخص

English — The complete routing intelligence — discovery, quoting, believability filtering, split allocation, multi-hop assembly, V4 derivation — is 29,183 bytes of EVM bytecode; replaying the leading commercial router's own production calldata on the same fork it measures 2.4–10.9× less gas per leg, against a reference compiled at optimizer_runs = 999999.

Português — Toda a inteligência de roteamento — descoberta, cotação, filtro de credibilidade, divisão, montagem multi-hop, derivação V4 — são 29,183 bytes de bytecode EVM; reproduzindo no mesmo fork o calldata de produção do router comercial líder, mede 2.4–10.9× menos gás por perna, contra uma referência compilada com optimizer_runs = 999999.

Español — Toda la inteligencia de enrutamiento — descubrimiento, cotización, filtrado de credibilidad, división, ensamblaje multi-hop, derivación V4 — son 29,183 bytes de bytecode EVM; reproduciendo en el mismo fork el calldata de producción del router comercial líder mide 2.4–10.9× menos gas por tramo, contra una referencia compilada con optimizer_runs = 999999.

Français — Toute l'intelligence de routage — découverte, cotation, filtrage de crédibilité, répartition, assemblage multi-hop, dérivation V4 — tient en 29,183 octets de bytecode EVM ; en rejouant sur le même fork le calldata de production du routeur commercial leader, elle mesure 2.4–10.9× moins de gaz par segment, contre une référence compilée à optimizer_runs = 999999.

Deutsch — Die komplette Routing-Intelligenz — Discovery, Quoting, Glaubwürdigkeitsfilter, Split-Zuteilung, Multi-Hop-Montage, V4-Ableitung — sind 29,183 Bytes EVM-Bytecode; beim Abspielen des Produktions-Calldata des führenden kommerziellen Routers auf demselben Fork misst sie 2.4–10.9× weniger Gas pro Bein, gegen eine Referenz mit optimizer_runs = 999999.

Русский — Вся маршрутизирующая логика — обнаружение, котирование, фильтр правдоподобия, разбиение, сборка мультихопов, вывод V4 — это 29,183 байта EVM-байткода; воспроизводя на том же форке боевой calldata ведущего коммерческого роутера, она измеряет в 2.4–10.9× меньше газа на плечо против референса, скомпилированного с optimizer_runs = 999999.

Türkçe — Rotalama zekâsının tamamı — keşif, kotasyon, inanılırlık filtresi, bölme, çok-sekmeli montaj, V4 türetimi — 29,183 bayt EVM bytecode'udur; lider ticari router'ın kendi üretim calldata'sını aynı fork üzerinde tekrar oynatınca bacak başına 2.4–10.9× daha az gaz ölçer; referans optimizer_runs = 999999 ile derlenmiştir.

العربية — ذكاء التوجيه كاملاً — الاكتشاف والتسعير ومرشّح المصداقية وتوزيع التقسيم وتجميع القفزات المتعددة واشتقاق V4 — هو 29,183 بايتاً من بايتكود EVM؛ وبإعادة تشغيل calldata الإنتاجي للموجّه التجاري الرائد على الشوكة نفسها يقيس غازاً أقل بـ2.4–10.9× لكل ساق، مقابل مرجع مُجمَّع عند optimizer_runs = 999999.

हिन्दी — पूरी रूटिंग बुद्धिमत्ता — खोज, कोटेशन, विश्वसनीयता फ़िल्टर, विभाजन, मल्टी-हॉप संयोजन, V4 व्युत्पत्ति — 29,183 बाइट का EVM बाइटकोड है; उसी fork पर अग्रणी वाणिज्यिक राउटर का अपना production calldata दोहराने पर यह प्रति चरण 2.4–10.9× कम गैस मापता है, संदर्भ optimizer_runs = 999999 पर संकलित।

日本語 — ルーティング知能の全体——発見、見積もり、信憑性フィルタ、分割配分、マルチホップ組立、V4導出——は29,183バイトのEVMバイトコードです。同一フォーク上で大手商用ルーターの本番calldataを再生すると、1レッグあたり2.4–10.9×少ないガスを計測します。参照はoptimizer_runs = 999999でコンパイル。

中文 — 完整的路由智能——发现、报价、可信度过滤、拆单分配、多跳组装、V4 推导——共 29,183 字节 EVM 字节码;在同一分叉上重放头部商业路由器自己的生产 calldata,实测每段少用 2.4–10.9× 的 gas,参照物以 optimizer_runs = 999999 编译。

한국어 — 라우팅 지능 전체 — 발견, 견적, 신뢰성 필터, 분할 배분, 멀티홉 조립, V4 유도 — 는 29,183바이트의 EVM 바이트코드입니다. 같은 포크에서 선두 상용 라우터의 실제 프로덕션 calldata를 재생하면 레그당 2.4–10.9× 적은 가스를 측정하며, 기준물은 optimizer_runs = 999999로 컴파일되었습니다.

Bahasa Indonesia — Seluruh kecerdasan perutean — penemuan, kuotasi, filter kredibilitas, alokasi pemisahan, perakitan multi-hop, derivasi V4 — adalah 29,183 byte bytecode EVM; memutar ulang calldata produksi router komersial terkemuka pada fork yang sama, ia mengukur gas 2.4–10.9× lebih sedikit per kaki, terhadap referensi yang dikompilasi pada optimizer_runs = 999999.

বাংলা — রাউটিং বুদ্ধিমত্তার পুরোটা — আবিষ্কার, কোটেশন, বিশ্বাসযোগ্যতা ফিল্টার, ভাগ বণ্টন, মাল্টি-হপ সংযোজন, V4 নিষ্পত্তি — 29,183 বাইট EVM বাইটকোড; একই ফর্কে শীর্ষ বাণিজ্যিক রাউটারের নিজস্ব প্রোডাকশন calldata আবার চালিয়ে এটি প্রতি ধাপে 2.4–10.9× কম গ্যাস মাপে, রেফারেন্স optimizer_runs = 999999-এ কম্পাইল করা।

Filipino — Ang buong katalinuhan ng pagruruta — pagtuklas, pagko-quote, pagsala ng kapani-paniwala, paghahati, pagbuo ng multi-hop, derivasyon ng V4 — ay 29,183 bytes ng EVM bytecode; sa muling pagpapatakbo ng sariling production calldata ng nangungunang komersyal na router sa parehong fork, sumusukat ito ng 2.4–10.9× na mas kaunting gas bawat bahagi, laban sa reperensiyang kinompile sa optimizer_runs = 999999.

Strip an aggregator to its essence and it is a piece of intelligence: something that discovers pools, prices them, distrusts the right ones, splits an order, assembles a route, and settles it. In the incumbent architecture that intelligence runs on a closed server, and the chain receives only its conclusions. In BlazePhoenix the intelligence itself is deployed: 29,183 bytes of EVM bytecode that discover, quote, filter, allocate, assemble and settle — readable by anyone, reproducible by any RPC node, identical on every chain served.

Size is worth stating because it answers the reflexive objection — surely on-chain routing cannot be practical. The entire engine is smaller than many projects' NFT contracts. What follows is what it measures like against the strongest available reference.

A benchmark that keeps itself honest

The execution layer was benchmarked the only honest way available: the same fork, the same block, real production calldata. The sector's leading commercial aggregation router's own encoded routes were requested from its public routing API and replayed against its deployed contract; our routes executed beside them; both sides' deliveries measured as balance deltas. The harness validates itself before validating anything else — the competitor's measured delivery matches its own API's promise to the wei, so a revert on either side cannot masquerade as a result.

Method error bars are part of the result, per the house rules. Quotes were pinned to the exact block they were built for, after an early round mis-attributed a few minutes of ordinary market drift to routing. And the competitor API's own gas estimates were discarded entirely after real execution measured one of them 148% low — every number that survived is a balance delta from real execution, or it is not in the record.

2.4–10.9× less gas per leg — and why no server can close it

Per leg, the executor is 2.4 to 10.9 times more gas-efficient than the reference router. The reference is compiled at optimizer_runs = 999999 — the practical maximum — so the difference is design, not compiler settings: their contract interprets a generic call list a server decided; ours executes a typed structure the Solver produced, and interpretation costs. On the clearest measured pair, their cleanest possible route — a single leg — cost 879,553 gas; four of our legs cost 322,172.

The structural point is stronger than the ratio. An off-chain solver has unlimited computation to choose its route; if its execution layer were equal or better, a clean route it chose would cost no more than ours. It costs more. The gap therefore lives in the executor — in bytecode, on-chain — where no amount of off-chain optimisation can reach it, because that gas burns after the server has already done its best.

Two doors, one integer

Across nine measured pairs, the fully trustless door — swapBestExactIn: no preview, no server, no calldata route, just two tokens and an amount — delivered output bit-identical to the pre-computed-route door. The cost of trusting nothing and nobody, on Base at live prices: three to eleven cents of gas. A swap with no dependency on any infrastructure of ours, or anyone's, costs cents and delivers the same integer.

That identity is not a coincidence to be maintained; it is the architecture. Both doors run the same dispatcher over the same state under the same floors — the doors differ in who paid for the search, never in what the trade is allowed to do.

What zero infrastructure actually buys

Any RPC node reproduces the quote, deterministically. There is no routing service to run, subsidise, rate-limit, or lose — and none to trust. For a user, that means the strongest failure mode of the incumbent architecture (the server is wrong, stale, selectively honest, or gone) does not exist here. For an integrator, it means the integration is a contract call, not a business relationship.

And for a reader deciding how much of this to believe: the engine's size is checkable with forge build --sizes, the per-leg numbers are from replayed production calldata at pinned blocks, the two-door identity is a pair of calls anyone can make, and the fidelity of the whole pipeline is a standing 0–1 bps measurement with an alarm on it. The engine is the deliverable — not a client of one.

Do not trust this page — reproduce it

Every claim above is checkable against the chain. Start here:

git clone https://github.com/blazephoenixxyz-crypto/Blaze-Phoenix-Dex && cd Blaze-Phoenix-Dex && FOUNDRY_PROFILE=release forge build --sizes  # the engine under the EIP-170 wall; then compare doors yourself: previewPlan (eth_call) vs swapBestExactIn on a fork
Cite this article

Licensed CC BY-NC-ND 4.0: quote and cite it with attribution and a link. Commercial use and derivative versions need written permission from BlazePhoenix; translations are made by BlazePhoenix. Copy a ready-made citation:

BlazePhoenix (2026). 29,183 bytes: the routing engine that lives on-chain, measured against the field. BlazePhoenix Engineering. https://blazephoenix.xyz/learn/the-on-chain-engine/
@misc{blazephoenix_the_on_chain_engine,
  title  = {29,183 bytes: the routing engine that lives on-chain, measured against the field},
  author = {BlazePhoenix},
  year   = {2026},
  url    = {https://blazephoenix.xyz/learn/the-on-chain-engine/},
  note   = {Accessed: reproduce the claim with the command above}
}

Writing an answer, a wiki entry or a paper? The claim above is reproducible against the chain before you quote it — which is the only sound basis for citing a technical source at all.

Contracts are verified on every chain we deploy to — addresses in the protocol manifest. Deeper formal treatment: the whitepaper (PDF). Sources cited: EIP-170: contract code size limit — the 24,576-byte wall the engine ships under, per contract.

Related engineering

Next in Architecture · 18 / 20
The decomposition law: why one contract is a monolith and the other is not ›An invariant is enforceable only at the finest boundary that can observe both of its terms in one frame. That single rule explains why the staking contract is deliberately monolithic, why the router is decomposed, and — as a corollary — exactly which boundaries leak.11 min

Questions, a partnership or a bug to report? Contact us or email contact@blazephoenix.xyz

Go to APP