> **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.

# TxEnvelope.deserialize

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

Deserializes a [`TxEnvelope.TxEnvelope`](/docs/utilities/txenvelope/types#txenvelope) from its serialized form.

## Imports

```ts
import { TxEnvelope } from 'viem/utils'
```

## Examples

```ts twoslash
// @noErrors
import { TxEnvelope } from 'viem/utils'

const envelope = TxEnvelope.deserialize(
  '0x02df0180808080808080c0' as TxEnvelope.Serialized
)
```

## Definition

```ts
function deserialize<serialized>(
  serialized: serialized | Serialized | Hex.Hex,
): deserialize.ReturnType<serialized>
```

## Parameters

### serialized

* **Type:** `serialized | Serialized | Hex.Hex`

The serialized transaction envelope.

## Return Type

Deserialized Transaction Envelope.

`deserialize.ReturnType<serialized>`
