# decodeCallsLA

> Overview of the decodeCallsLA function

> For the complete documentation index, see [llms.txt](/docs/llms.txt).

{/* This file is auto-generated by TypeDoc. Do not edit manually. */}

```ts
function decodeCallsLA(data, accountAddress): Call[];
```

Defined in: [packages/smart-accounts/src/light-account/accounts/calldataCodec.ts:57](https://github.com/alchemyplatform/aa-sdk/blob/v5.x.x/packages/smart-accounts/src/light-account/accounts/calldataCodec.ts#L57)

Decodes LightAccount calldata back into an array of calls.
Used internally by the LightAccount SmartAccount implementation. Typically not needed
directly unless you have an advanced use case.

## Parameters

<table>
  <thead>
    <tr>
      <th align="left">Parameter</th>
      <th align="left">Type</th>
      <th align="left">Description</th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `data`
      </td>

      <td>
        `` `0x${string}` ``
      </td>

      <td>
        The calldata to decode.
      </td>
    </tr>

    <tr>
      <td>
        `accountAddress`
      </td>

      <td>
        `` `0x${string}` ``
      </td>

      <td>
        The account address, used as the `to` for unrecognized selectors.
      </td>
    </tr>

  </tbody>
</table>

## Returns

[`Call`](https://viem.sh)\[]

The decoded calls.