# SignatureEnvelope.getType

Determines the signature type of an envelope.

## Imports

:::code-group
```ts [Named]
import { SignatureEnvelope } from 'ox/tempo'
```

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

## Examples

```ts twoslash
import { SignatureEnvelope } from 'ox/tempo'

const type = SignatureEnvelope.getType({
  signature: {
    r: '0x0000000000000000000000000000000000000000000000000000000000000000',
    s: '0x0000000000000000000000000000000000000000000000000000000000000000',
    yParity: 0
  }
})
// @log: 'secp256k1'
```

## Definition

```ts
function getType<envelope>(
  envelope: envelope,
): GetType<envelope>
```

**Source:** [src/tempo/SignatureEnvelope.ts](https://github.com/wevm/ox/blob/main/src/tempo/SignatureEnvelope.ts#L1794)

## Parameters

### envelope

* **Type:** `envelope`

The signature envelope to inspect.

## Return Type

The signature type ('secp256k1', 'p256', or 'webAuthn').

`GetType<envelope>`
