Skip to content

EIP-8024 — DUPN, SWAPN, EXCHANGE ​

EIP-8024DUPN, SWAPN, EXCHANGE

Runnable

Live on the hosted MCP — free on Amsterdam. Connect an agent and ask.

Amsterdam (Glamsterdam)Runs withrun_bytecode

What became possible ​

How do you reach deep into the EVM stack beyond DUP16 and SWAP16?

On Glamsterdam, the EVM executes three new stack opcodes: DUPN (0xe6), SWAPN (0xe7), and EXCHANGE (0xe8). They extend deep stack access beyond DUP16 / SWAP16 without breaking backward compatibility.

The MCP server runs any raw bytecode you (or your agent) supply under Glamsterdam and returns deterministic gas, stack, and optional traces. It does not ship fixed demo programs — your agent constructs bytecode from the spec.

Try asking your agent ​

The hosted MCP is live (Connect). Copy a prompt into your agent — each quote is self-contained.

Job

Amsterdam

Give me a minimal DUPN example for depth 17, encode it as bytecode, and run it on Glamsterdam with trace.

Look forthe opcode trace and the final stack

Agent will likely call run_bytecode

Lesson

Amsterdam

On Glamsterdam, run DUPN at depth 4 on a stack 1,2,3,4,5 — which stack value does DUPN copy to the top?

Look for2 copied from depth 4

Agent will likely call run_bytecode

Check

Amsterdam

On Glamsterdam, run DUPN with depth 0 — does it fail?

Agent will likely call run_bytecode

What the server does ​

  1. Discover support

    Confirm 8024 is runnable; read opcode encoding from the live catalog.

  2. Run bytecode

    Execute programs under a fork config (Glamsterdam only is fine).

Fork caveat

Glamsterdam already bundles EIP-8024 in EthereumJS v10. Passing eips: [8024] is accepted but is not a before/after toggle on Glamsterdam itself.

For 8024 off vs on (optional), run the same bytecode on baseline fork fusaka, then on preview fork glamsterdam. The catalog exposes this pair on the EIP-8024 module as comparison: { baselineForkId: "fusaka", previewForkId: "glamsterdam" }. You do not need osaka for Glamsterdam-only 8024 runs.

Twins and spec ​

Canonical spec
EIP-8024
Spec date
2026-06-10
Coverage index
EIP catalogue
EIP-8024 MCP Catalogue Changelog
EIP-8024 MCP Catalogue Changelog
  1. v0.42026-09-02Status is public-launch ready — no local / self-host framing.
  2. v0.32026-08-27Fusaka baseline vs Glamsterdam preview — run twice to compare 8024 behavior.
  3. v0.22026-08-27Human prompts without tool names; action table uses plain labels.
  4. v0.12026-08-27Initial human catalogue page — inspiration prompts, tools, fork caveat, twin links.

Get started = connect and ask questions. Reference = catalogues and tool schemas. Internals = for builders.