Type Definition
BrandedUint8Array representing contract creation bytecode deployed during contract creation transactions.
- Constructor logic
- Constructor arguments (if any)
- Runtime bytecode (returned by constructor)
Quick Reference
- Create
- Extract
API Methods
Constructors
from(value)- Create from hex string or Uint8ArrayfromHex(hex)- Parse hex string (with or without 0x prefix)
Analysis
extractRuntime(init, offset)- Extract runtime code at offsetestimateGas(init)- Estimate creation gas cost
Utilities
toHex(init)- Convert to hex stringequals(a, b)- Compare equality
Usage Patterns
Deploying Contract
Analyzing Creation Bytecode
Gas Estimation
Related
- ContractCode - Deployed contract bytecode
- RuntimeCode - Pure runtime bytecode
- Bytecode - General bytecode analysis
- Transaction - Transaction types
Specification
- Ethereum Yellow Paper - Contract creation semantics
- EVM Opcodes - CREATE and CREATE2 operations
- EIP-2028 - Calldata gas cost reduction

