Skip to main content

EncodedData

Branded hex string representing ABI-encoded data. Used for function calls, constructor arguments, and custom error data.

Type

Construction

Methods

  • from(value) - Universal constructor (hex or bytes)
  • fromBytes(bytes) - From Uint8Array
  • toBytes(data) - Convert to Uint8Array
  • equals(a, b) - Compare equality (case-insensitive)

Example