Skip to main content

generateErc3448(implementation: Uint8Array, metadata: Uint8Array): Uint8Array

Generates ERC-3448 MetaProxy bytecode with embedded metadata. Extends ERC-1167 minimal proxy by appending metadata after the proxy code, enabling factory patterns with embedded configuration. Parameters:
  • implementation: Uint8Array - 20-byte implementation address
  • metadata: Uint8Array - Metadata to embed (arbitrary length)
Returns: Uint8Array - Complete MetaProxy bytecode (55 + metadata.length + 32 bytes) Throws:
  • Error - If implementation address is not 20 bytes
Example:
Defined in: src/primitives/Proxy/generateErc3448.js

Factory Pattern with Metadata

See Also