REA EVM bytecode notes (unofficial)

Last updated: · By the RepoRead editorial team · Unofficial guide
Quick answer

REA can infer interface candidates from one explicitly selected local EVM bytecode carrier — for contract investigation, compatibility, audit or CTF showcases — without talking to a chain. Prefer evm-bytecode.md.

Minimal path

rea inspect-evm-interface ./runtime.hex hex --json
rea inspect-evm-interface ./runtime.bin raw --json

MCP inspect_evm_interface needs absolute path plus encoding. On retaining servers, detail: "summary" keeps selectors without full bytecode text.

Mental model

  1. Select a local hex/raw snapshot you are authorized to examine.
  2. Treat selectors, argument strings and mutability as inferences — not a verified source ABI.
  3. Carrier SHA-256 ≠ Ethereum Keccak code hash; decoded-byte SHA-256 identifies selected EVM bytes.
  4. Resource ceilings (input/output/CPU/prlimit) fail closed without partial success.

Offline interface inference does not authorize interacting with production wallets or bypassing contract controls. Keep artifacts inside authorization.

RepoRead is unofficial. Prefer evm-bytecode.md.

FAQ

Does REA call a chain RPC or broadcast transactions?

No. Upstream states analysis is offline — no target runtime execution, implicit chain/RPC/explorer lookup, wallet action, transaction broadcast or network request.

Which encodings are accepted?

encoding is required — raw bytes or UTF-8 hex (optional 0x prefix and outer ASCII whitespace). Odd hex, interior separators, BOM and non-ASCII whitespace are rejected.

What about EOF EF00 containers?

Docs say EOF-style EF00 containers return unsupported_target with the selected path and format reason. Initial verification covers flat legacy bytecode on Linux x64 with bundled EVMole 0.9.3.

Host prerequisite?

The host must already provide util-linux prlimit (normally /usr/bin/prlimit); REA_EVM_PRLIMIT_COMMAND can select another absolute executable. REA installs no system tools.

npm version checked?

rea-agents 6.7.0 (re-checked 2026-10-24).

Sources