Skip to main content

ReturnData

Branded Uint8Array representing raw, uninterpreted return data from contract execution.

Type

Construction

Methods

  • from(value) - Universal constructor (hex or bytes)
  • fromHex(hex) - From hex string
  • fromBytes(bytes) - From Uint8Array
  • toHex(data) - Convert to hex string
  • toBytes(data) - Convert to Uint8Array
  • equals(a, b) - Compare equality
  • isEmpty(data) - Check if empty

Example