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

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

Returns the type of a serialized Transaction Envelope.

## Imports

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

## Examples

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

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

## Definition

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

## Parameters

### serialized

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

The serialized transaction envelope.

## Return Type

Transaction Envelope type.

`getSerializedType.ReturnType<serialized>`
