Bytecode (BrandedBytecode) is a branded Uint8Array holding EVM deployment (initCode) or runtime bytecode, equipped with instruction scanning, JUMPDEST analysis, basic-block decomposition, static stack/gas analysis, Solidity CBOR metadata stripping, and selector-based ABI extraction.
Quick Start
@tevm/voltaire or @tevm/voltaire/Bytecode.
API Reference
Construction, Formatting & Hashing
Instruction Parsing & Disassembly
Analysis & Metadata
Edge Cases
- A
0x5bbyte inside aPUSH1–PUSH32immediate payload is not a validJUMPDEST. Always useanalyzeJumpDestinationsorisValidJumpDestrather than scanning raw bytes for0x5b. - Solidity appends a 2-byte big-endian length suffix for CBOR metadata (
a26469706673...);stripMetadatavalidates that suffix before slicing.
Related
- Opcode — Individual EVM opcode constants, stack effects, and gas metadata
- GasConstants — Fork-aware gas schedule
- ABI — Contract interface extracted by
toAbi

