# KeyAuthorization.fromTuple

Converts an [`KeyAuthorization.Tuple`](/tempo/reference/KeyAuthorization/types#tuple) to an [`KeyAuthorization.KeyAuthorization`](/tempo/reference/KeyAuthorization/types#keyauthorization).

## Imports

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

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

## Examples

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

const authorization = KeyAuthorization.fromTuple([
  [
    '0x',
    '0x00',
    '0xbe95c3f554e9fc85ec51be69a3d807a0d55bcf2c',
    '0x174876e800',
    [
      [
        '0x20c0000000000000000000000000000000000001',
        '0xf4240'
      ]
    ]
  ],
  '0x01a068a020a209d3d56c46f38cc50a33f704f4a9a10a59377f8dd762ac66910e9b907e865ad05c4035ab5792787d4a0297a43617ae897930a6fe4d822b8faea52064'
])
```

Unsigned Key Authorization tuple (no signature):

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

const authorization = KeyAuthorization.fromTuple([
  [
    '0x',
    '0x00',
    '0xbe95c3f554e9fc85ec51be69a3d807a0d55bcf2c',
    '0x174876e800',
    [
      [
        '0x20c0000000000000000000000000000000000001',
        '0xf4240'
      ]
    ]
  ]
])
```

## Definition

```ts
function fromTuple<tuple>(
  tuple: tuple,
): fromTuple.ReturnType<tuple>
```

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

## Parameters

### tuple

* **Type:** `tuple`

The Key Authorization tuple.

## Return Type

The [`KeyAuthorization.KeyAuthorization`](/tempo/reference/KeyAuthorization/types#keyauthorization).

`fromTuple.ReturnType<tuple>`
