# bypassPaymasterAndData | @aa-sdk/core

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

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

Utility method for checking whether the middleware pipeline should
bypass the paymaster middleware for the user operation with the given overrides,
either because the UserOp is paying for its own gas, or passing a specific paymaster

## 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