# TransactionEnvelope.getSerializedType

Returns the type of a serialized Transaction Envelope.

## Imports

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

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

## Examples

```ts twoslash
import { TransactionEnvelope } from 'ox'

const type = TransactionEnvelope.getSerializedType(
  '0x02df0180808080808080c0'
)
// @log: 'eip1559'
```

## Definition

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

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

## Parameters

### serialized

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

The serialized transaction envelope.

## Return Type

Transaction Envelope type.

`getSerializedType.ReturnType<serialized>`
