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

# SignatureErc6492.wrap

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

Serializes an [ERC-6492 wrapped signature](https://eips.ethereum.org/EIPS/eip-6492#specification).

## Imports

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

## Examples

```ts twoslash
// @noErrors
import { Secp256k1, Signature } from 'viem/utils'
import { SignatureErc6492 } from 'viem/utils' // [!code focus]

const signature = Secp256k1.sign({
  payload: '0x...',
  privateKey: '0x...'
})

const wrapped = SignatureErc6492.wrap({
  // [!code focus]
  data: '0xdeadbeef', // [!code focus]
  signature: Signature.toHex(signature), // [!code focus]
  to: '0x00000000219ab540356cBB839Cbe05303d7705Fa' // [!code focus]
}) // [!code focus]
```

## Definition

```ts
function wrap(
  value: Unwrapped,
): Wrapped
```

## Parameters

### value

* **Type:** [`Unwrapped`](/docs/utilities/signatureerc6492/types#signatureerc6492unwrapped)

Wrapped signature to serialize.

#### value.data

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

Calldata to pass to the target address for counterfactual verification.

#### value.signature

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

The original signature.

#### value.to

* **Type:** `abitype_Address`

The target address to use for counterfactual verification.

## Return Type

Serialized wrapped signature.

[`Wrapped`](/docs/utilities/signatureerc6492/types#signatureerc6492wrapped)
