ethereumjs-monorepo

@ethereumjs/evm


@ethereumjs/evm / validateEOF

Function: validateEOF()

validateEOF(input, evm, containerMode?, eofMode?): EOFContainer

Defined in: eof/container.ts:481

Validates an EOF container for deployment (header, body, opcode/stack rules, subcontainers).

Call before accepting transaction-submitted containers; on-chain deployed EOF code is already valid.

Parameters

input

Uint8Array

evm

EVM

containerMode?

ContainerSectionType = ContainerSectionType.RuntimeCode

Whether the container is runtime, init, or deployment code.

eofMode?

EOFContainerMode = EOFContainerMode.Default

Returns

EOFContainer

Parsed EOFContainer when validation succeeds.

Throws

On header, body, opcode, stack, or subcontainer validation failures.