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

# Signature.toTuple

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

Converts a [`Signature.Signature`](/docs/utilities/signature/types#signature) to a serialized [`Signature.Tuple`](/docs/utilities/signature/types#tuple) to be used for signatures in Transaction Envelopes, EIP-7702 Authorization Lists, etc.

## Imports

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

## Examples

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

const signatureTuple = Signature.toTuple({
  r: '0x000000000000000000000000000000000000000000000000000000000000007b',
  s: '0x00000000000000000000000000000000000000000000000000000000000001c8',
  yParity: 1
})
// @log: [yParity: '0x01', r: '0x7b', s: '0x1c8']
```

## Definition

```ts
function toTuple(
  signature: Signature,
): Tuple
```

## Parameters

### signature

* **Type:** `Signature`

The [`Signature.Signature`](/docs/utilities/signature/types#signature) to convert.

#### signature.r

* **Type:** `0x${string}`

#### signature.s

* **Type:** `0x${string}`

#### signature.yParity

* **Type:** `numberType`
* **Optional**

## Return Type

The [`Signature.Tuple`](/docs/utilities/signature/types#tuple).

`Tuple`
