# SignatureErc8010.from

Parses an [ERC-8010 wrapped signature](https://github.com/jxom/ERCs/blob/16f7e3891fff2e1e9c25dea0485497739db8a816/ERCS/erc-8010.md) into its constituent parts.

## Imports

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

```ts [Entrypoint]
import * as SignatureErc8010 from 'ox/erc8010/SignatureErc8010'
```
:::

## Examples

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

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

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

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

## Definition

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

**Source:** [src/erc8010/SignatureErc8010.ts](https://github.com/wevm/ox/blob/main/src/erc8010/SignatureErc8010.ts#L267)

## Parameters

### value

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

Value to parse.

#### value.authorization

* **Type:** `{ address: abitype_Address; chainId: number; nonce: bigint; r: 0x${string}; s: 0x${string}; yParity: number; }`

Authorization signed by the delegatee.

#### value.data

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

Data to initialize the delegation.

#### value.signature

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

The original signature.

#### value.to

* **Type:** `Address.Address | undefined`
* **Optional**

Address of the initializer.

## Return Type

Parsed value.

[`SignatureErc8010.Unwrapped`](/ercs/erc8010/SignatureErc8010/types#signatureerc8010unwrapped)
