# KeyAuthorization.toTuple

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

## 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'
import { Value } from 'ox'

const authorization = KeyAuthorization.from({
  address: '0xbe95c3f554e9fc85ec51be69a3d807a0d55bcf2c',
  chainId: 4217n,
  expiry: 1234567890,
  type: 'secp256k1',
  limits: [
    {
      token: '0x20c0000000000000000000000000000000000001',
      limit: Value.from('10', 6)
    }
  ]
})

const tuple = KeyAuthorization.toTuple(authorization) // [!code focus]
// @log: [
// @log:   '0x174876e800',
// @log:   [['0x20c0000000000000000000000000000000000001', '0xf4240']],
// @log:   '0xbe95c3f554e9fc85ec51be69a3d807a0d55bcf2c',
// @log:   'secp256k1',
// @log: ]
```

## Definition

```ts
function toTuple<authorization>(
  authorization: authorization,
): toTuple.ReturnType<authorization>
```

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

## Parameters

### authorization

* **Type:** `authorization`

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

## Return Type

A Tempo Key Authorization tuple.

`toTuple.ReturnType<authorization>`
