# bypassPaymasterAndDataEmptyHex | @aa-sdk/core

> Overview of the bypassPaymasterAndDataEmptyHex 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 bypassPaymasterAndDataEmptyHex<TEntryPointVersion>(overrides): boolean;
```

Defined in: [aa-sdk/core/src/utils/userop.ts:183](https://github.com/alchemyplatform/aa-sdk/blob/main/aa-sdk/core/src/utils/userop.ts#L183)

An alternative to `bypassPaymasterAndData` which only returns true if the data parameter
is "0x," this is useful for cases when middleware should be bypassed ONLY IF the UserOp will
pay for its own gas

## Type Parameters

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

  <tbody>
    <tr>
      <td>
        `TEntryPointVersion` *extends* `EntryPointVersion`
      </td>

      <td>
        `EntryPointVersion`
      </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>
        `overrides`
      </td>

      <td>
        `any`
      </td>

      <td>
        the user operation overrides to check
      </td>
    </tr>

  </tbody>
</table>

## Returns

`boolean`

whether the paymaster middleware should be bypassed