Are you an LLM? Read llms.txt for a summary of the docs, or llms-full.txt for the full context.
Skip to content

Hex

A hex-encoded string.

Definition

type Hex = string

Notes

  • Used for code hashes, key bytes, and key hashes. Some hex strings are conventionally lower-case (code hashes), others upper-case (key hashes).
  • For strict template-literal typing (0x${string}), use Address instead.
  • Validate with isHex from @left-curve/encoding; convert with encodeHex / decodeHex.

See also