# convertHeadersToObject | @account-kit/infra

> Overview of the convertHeadersToObject function from @account-kit/infra

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

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

```ts
function convertHeadersToObject(headers?): Record<string, string>;
```

Defined in: [account-kit/infra/src/alchemyTransport.ts:262](https://github.com/alchemyplatform/aa-sdk/blob/main/account-kit/infra/src/alchemyTransport.ts#L262)

## Parameters

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

  <tbody>
    <tr>
      <td>
        `headers?`
      </td>

      <td>
        `HeadersInit`
      </td>
    </tr>

  </tbody>
</table>

## Returns

`Record`\<`string`, `string`>