An Ethereum JSON-RPC response is not a proof. It is one server's account of a block, transaction or event.
We built Ethereum Copycat so a HyperBEAM node can import Ethereum execution data, verify the commitments in each block, and serve the result from its own store.
The package contains 2 Forge devices. ethereum@1.0 performs verified reads against an RPC endpoint. ethereum-copycat@1.0 walks finalized blocks, persists them and exposes local reads with the same descending-range contract as HyperBEAM's Arweave Copycat engine.
Rebuilding the block
Copycat does not store the RPC response and label it verified. It reconstructs the data Ethereum actually commits to.
For every block, the device encodes the execution header into canonical RLP and hashes it with Keccak-256. The result must equal the block hash returned by the provider. Required fields are checked at their exact byte widths, quantities cannot use non-canonical leading zeroes, and optional header fields must appear in protocol order. The codec currently covers headers through Amsterdam.
The selected indexing mode determines how much further verification goes:
| Mode | Stored data | Checks |
|---|---|---|
shallow |
Header RLP and transaction hashes | Header hash, height and parent links |
deep |
Header RLP and signed transaction envelopes | shallow plus transactionsRoot |
full |
Deep record and receipt envelopes | deep plus receiptsRoot |
Deep mode rebuilds every signed transaction envelope. It supports legacy transactions and EIP-2718 types 1 through 4, including access lists, blob fields and EIP-7702 authorization lists. Each envelope is hashed again, checked against its transaction hash, and inserted into an ordered hexary Merkle Patricia Trie under the RLP encoding of its zero-based index. The resulting root must match transactionsRoot in the header.
Full mode does the same for receipts. It encodes the status or pre-Byzantium state root, cumulative gas, logs bloom and ordered logs, checks that each receipt type matches its transaction type, then compares the rebuilt trie with receiptsRoot. An omitted, invented or reordered transaction, receipt or log changes a root and rejects the block.
Across a range, Copycat also checks that each newer header names the preceding block as its parent and that the heights are consecutive. A configured chain ID is mandatory, and neither end of a requested range may pass the provider's finalized tip.
Descending from finality
from and to are inclusive, and negative heights are resolved relative to the current finalized tip. An explicit range is processed in full. With no to, the device walks backward until it reaches the first block already indexed at the requested mode, verifies the boundary against the newer block, and stops without rewriting it.
Modes are ranked. A full record satisfies later deep or shallow scans, and a deep record satisfies a shallow scan. Asking for a stronger mode upgrades the stored block; reindexing at a weaker mode retains the stronger record.
The worker itself is one-shot. HyperBEAM's cron@1.0 device can call it from the finalized tip at a fixed interval, and each run naturally stops at the first block completed by the previous run. There is no separate cursor to recover or synchronize.
Store the committed bytes
The persisted format is ethereum-rlp-v1. A block record contains one canonical header, one ordered vector of raw transaction envelopes and, in full mode, one ordered vector of raw receipt envelopes. JSON is reconstructed only when a client reads the record.
The store keeps canonical height mappings and separate mode metadata. Transaction and receipt indexes are 41-byte locators containing a block hash and vector position, so the same object is not copied into another JSON document for every lookup.
ethereum-copycat/<chain-id>/blocks/<block-hash>
ethereum-copycat/<chain-id>/canonical/<height>
ethereum-copycat/<chain-id>/indexed/<height>
ethereum-copycat/<chain-id>/transactions/<transaction-hash>
ethereum-copycat/<chain-id>/receipts/<transaction-hash>
For Ethereum mainnet block 25724074, which contains 447 transactions, the binary block record is 425,617 bytes. The equivalent block and receipt RPC JSON is 1,502,729 bytes; storing separate transaction and receipt JSON objects would bring it to roughly 3 MB before database overhead.
Compact storage does not mean trusting old verification labels. When a record is read, the device decodes its header and envelopes, recomputes the transaction and receipt tries, reconstructs derived hashes and positions, and checks that the block still matches its store key. A block already assigned to a finalized height cannot be silently replaced by another hash, while a shallow record can be upgraded to deep or full without later being downgraded.
A settlement-facing event read
The direct logs route on ethereum@1.0 remains an RPC observation. Protocols that release value from an Ethereum event need a narrower read.
verified-event requires an exact block hash, transaction hash and block-global log index. In one resolution it loads a full record, verifies the header, transaction root and receipt root again, checks the block against the local canonical-height index, locates the transaction, and derives the log's position by counting the preceding receipts. It does not trust the RPC provider's logIndex field.
The response contains only the selected address, topics and data, the receipt's execution status, and the verification records that produced them. This gives a bridge or settlement device one fact to consume instead of a large RPC response it would have to interpret and trust.
What remains trusted
Header hashing proves that a response is internally consistent with a block hash. It does not prove that the block belongs to Ethereum's canonical chain.
When the configured RPC is eth-witness, a 2-of-3 Helios quorum establishes the number and hash of a recent block. An archive node then supplies the matching body, and Copycat independently checks that body against the witnessed header. Historical blocks outside the Helios window still rely on the archive provider for canonical-chain selection.
Ethereum Copycat is therefore not an Ethereum consensus client or an EVM replay engine. It is a verified local projection of the execution data committed by selected finalized headers, built for HyperBEAM devices that need Ethereum facts without treating raw JSON-RPC as proof.
The device, record format and local-node configuration are available at github.com/permaweb/ethereum-copycat.