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

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

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

## Imports

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

## Examples

```ts twoslash
// @noErrors
import { Secp256k1 } from 'viem/utils'
import { SignatureErc6492 } from 'viem/utils' // [!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
```

## 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`](/docs/utilities/signatureerc6492/types#signatureerc6492unwrapped)
