# SignatureErc6492.from

Parses an [ERC-6492 wrapped signature](https://eips.ethereum.org/EIPS/eip-6492#specification) into its constituent parts.

## Imports

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

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

## Examples

```ts twoslash
// @noErrors
import { Secp256k1 } from 'ox'
import { SignatureErc6492 } from 'ox/erc6492' // [!code focus]

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

// Instantiate from serialized format. // [!code focus]
const wrapped = SignatureErc6492.from('0x...') // [!code focus]
// @log: { data: '0x...', signature: { ... }, to: '0x...', } // [!code focus]

// Instantiate from constituent parts. // [!code focus]
const wrapped = SignatureErc6492.from({
  // [!code focus]
  data: '0x...', // [!code focus]
  signature, // [!code focus]
  to: '0x...' // [!code focus]
})
// @log: { data: '0x...', signature: { ... }, to: '0x...', }
```

## Definition

```ts
function from(
  wrapped: Unwrapped | Wrapped,
): Unwrapped
```

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

## Parameters

### wrapped

* **Type:** `Unwrapped | Wrapped`

Wrapped signature to parse.

#### wrapped.data

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

Calldata to pass to the target address for counterfactual verification.

#### wrapped.signature

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

The original signature.

#### wrapped.to

* **Type:** `abitype_Address`

The target address to use for counterfactual verification.

## Return Type

Wrapped signature.

[`Unwrapped`](/ercs/erc6492/SignatureErc6492/types#signatureerc6492unwrapped)
