# Execute.decodeData

Decodes calls from ERC-7821 `execute` function data.

## Imports

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

```ts [Entrypoint]
import * as Execute from 'ox/erc7821/Execute'
```
:::

## Examples

```ts twoslash
import { Execute } from 'ox/erc7821'

const { calls } = Execute.decodeData('0x...')
```

## Definition

```ts
function decodeData(
  data: Hex.Hex,
): decodeData.ReturnType
```

**Source:** [src/erc7821/Execute.ts](https://github.com/wevm/ox/blob/main/src/erc7821/Execute.ts#L198)

## Parameters

### data

* **Type:** `Hex.Hex`

The encoded data.

## Return Type

The decoded calls and optional opData.

`decodeData.ReturnType`
