Type Definition
BrandedUint8Array representing full deployed contract bytecode including Solidity compiler metadata.
Quick Reference
- Create
- Convert
API Methods
Constructors
from(value)- Create from hex string or Uint8ArrayfromHex(hex)- Parse hex string (with or without 0x prefix)
Metadata
hasMetadata(code)- Check if code contains compiler metadatastripMetadata(code)- Remove Solidity metadataextractRuntime(code)- Extract runtime code (alias for stripMetadata)
Utilities
toHex(code)- Convert to hex stringequals(a, b)- Compare equality
Usage Patterns
Verifying Contract Code
Analyzing Contract Structure
Related
- InitCode - Contract creation bytecode
- RuntimeCode - Pure runtime bytecode
- Metadata - Solidity compiler metadata
- Bytecode - General bytecode analysis
Specification
- Solidity Metadata - Compiler metadata format
- Contract Verification - Etherscan verification guide

