# getUserOperationError | @aa-sdk/core

> Overview of the getUserOperationError function from @aa-sdk/core

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

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

```ts
function getUserOperationError<TTransport, TChain, TAccount>(
  client,
  request,
  entryPoint,
): Promise<void>;
```

Defined in: [aa-sdk/core/src/actions/smartAccount/getUserOperationError.ts:28](https://github.com/alchemyplatform/aa-sdk/blob/main/aa-sdk/core/src/actions/smartAccount/getUserOperationError.ts#L28)

Retrieves the error message from an entrypoint for a User Operation.

## Type Parameters

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

  <tbody>
    <tr>
      <td>
        `TTransport` *extends* [`Transport`](https://viem.sh)
      </td>

      <td>
        [`Transport`](https://viem.sh)
      </td>
    </tr>

    <tr>
      <td>
        `TChain` *extends* `undefined` | [`Chain`](https://viem.sh)
      </td>

      <td>
        `undefined` | [`Chain`](https://viem.sh)
      </td>
    </tr>

    <tr>
      <td>
        `TAccount` *extends*
        | `undefined`
        | [`SmartContractAccount`](../type-aliases/SmartContractAccount)
      </td>

      <td>
        | `undefined`
        | [`SmartContractAccount`](../type-aliases/SmartContractAccount)
      </td>
    </tr>

  </tbody>
</table>

## Parameters

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

  <tbody>
    <tr>
      <td>
        `client`
      </td>

      <td>
        `BaseSmartAccountClient`\<`TTransport`, `TChain`, `TAccount`>
      </td>

      <td>
        the smart account client to use for RPC requests
      </td>
    </tr>

    <tr>
      <td>
        `request`
      </td>

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

      <td>
        the uo request to get the error for
      </td>
    </tr>

    <tr>
      <td>
        `entryPoint`
      </td>

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

      <td>
        the entrypoint instance to send the uo to
      </td>
    </tr>

  </tbody>
</table>

## Returns

`Promise`\<`void`>

the error message from the entrypoint