# concatPaymasterAndData | @aa-sdk/core

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

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

Utility method for converting the object containing the paymaster address and paymaster data
to the paymaster and data concatenated hex string

## Parameters

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

  <tbody>
    <tr>
      <td>
        `paymasterAndData`
      </td>

      <td>
        `Pick`\<`UserOperationRequest`\<`"0.7.0"`>, `"paymaster"` | `"paymasterData"`>
      </td>

      <td>
        the object containing the picked paymaster and paymasterData fields of
        entrypoint v0.7 user operation request
      </td>
    </tr>

  </tbody>
</table>

## Returns

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

the paymasterAndData hex value of entrypoint v0.6 user operation request paymasterAndData field