> **Can't find what you're looking for?** Use `search_docs` on the docs MCP server at `https://v3.viem.sh/api/mcp` to find what you need.

# Hex Types

:::info
`Hex` is a re-export of ox's [`Hex`](https://oxlib.sh/api/Hex/types). Refer to the ox documentation for the full reference.
:::

## `Hex.Hex`

Root type for a Hex string.

## `Hex.IntegerOutOfRangeError`

Re-exported from `internal/codec/int.ts`.

## `Hex.InvalidHexValueError`

Re-exported from `internal/codec/hex.ts`.

## `Hex.InvalidLengthError`

Re-exported from `internal/codec/hex.ts`.
