# encodeDeferredActionWithSignature

> Overview of the encodeDeferredActionWithSignature 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 encodeDeferredActionWithSignature(params): `0x${string}`;
```

Defined in: [packages/smart-accounts/src/ma-v2/utils/deferredActions.ts:51](https://github.com/alchemyplatform/aa-sdk/blob/v5.x.x/packages/smart-accounts/src/ma-v2/utils/deferredActions.ts#L51)

Encodes the deferred action with its signature, producing the payload to prepend to the userOp signature.

Assumption: The client this extends is used to sign the typed data.

## Parameters

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

  <tbody>
    <tr>
      <td>
        `params`
      </td>

      <td>
        [`EncodeDeferredActionWithSignatureParams`](../type-aliases/EncodeDeferredActionWithSignatureParams)
      </td>

      <td>
        The parameters for encoding the deferred action with its signature.
      </td>
    </tr>

  </tbody>
</table>

## Returns

`` `0x${string}` ``

The encoded payload to be prepended to the userOp signature.