@ethereumjs/evm / 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.
Uint8Array
ContainerSectionType = ContainerSectionType.RuntimeCode
Whether the container is runtime, init, or deployment code.
EOFContainerMode = EOFContainerMode.Default
Parsed EOFContainer when validation succeeds.
On header, body, opcode, stack, or subcontainer validation failures.