# SignatureErc6492.wrap

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

## Imports

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

```ts [Entrypoint]
import * as SignatureErc6492 from 'ox/erc6492/SignatureErc6492'
```
:::

## Examples

```ts twoslash
import { Secp256k1, Signature } from 'ox'
import { SignatureErc6492 } from 'ox/erc6492' // [!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
```

**Source:** [src/erc6492/SignatureErc6492.ts](https://github.com/wevm/ox/blob/main/src/erc6492/SignatureErc6492.ts#L291)

## Parameters

### value

* **Type:** [`Unwrapped`](/ercs/erc6492/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`](/ercs/erc6492/SignatureErc6492/types#signatureerc6492wrapped)
