# TxEnvelopeEip8141.deserialize

Deserializes an EIP-8141 transaction body or PeerDAS network wrapper.

## Imports

:::code-group
```ts [Named]
import { TxEnvelopeEip8141 } from 'ox'
```

```ts [Entrypoint]
import * as TxEnvelopeEip8141 from 'ox/TxEnvelopeEip8141'
```
:::

## Examples

### Basic Usage

```ts twoslash
import { Frame, TxEnvelopeEip8141 } from 'ox'

const envelope = TxEnvelopeEip8141.from({
  chainId: 1,
  frames: [Frame.from({})],
  sender: '0x70997970c51812dc3a010c7d01b50e0d17dc79c8'
})

const serialized = TxEnvelopeEip8141.serialize(envelope)
const decoded = TxEnvelopeEip8141.deserialize(serialized)
```

## Definition

```ts
function deserialize(
  serialized: Serialized,
): TxEnvelopeEip8141
```

**Source:** [src/core/TxEnvelopeEip8141.ts](https://github.com/wevm/ox/blob/main/src/core/TxEnvelopeEip8141.ts#L253)

## Parameters

### serialized

* **Type:** `Serialized`

Serialized transaction or network wrapper.

## Return Type

The transaction envelope.

`TxEnvelopeEip8141`
