# TransactionEnvelope.getType

Returns the type of a 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.getType({
  maxFeePerGas: 1n
})
// @log: 'eip1559'
```

## Definition

```ts
function getType<envelope>(
  envelope: envelope | Typeable,
): getType.ReturnType<envelope>
```

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

## Parameters

### envelope

* **Type:** `envelope | Typeable`

The transaction envelope.

## Return Type

Transaction Envelope type.

`getType.ReturnType<envelope>`
