# useAlchemyAccountContext | @account-kit/react

> Overview of the useAlchemyAccountContext hook from @account-kit/react

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

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

```ts
function useAlchemyAccountContext(override?): AlchemyAccountContextProps;
```

Defined in: [account-kit/react/src/hooks/useAlchemyAccountContext.ts:21](https://github.com/alchemyplatform/aa-sdk/blob/main/account-kit/react/src/hooks/useAlchemyAccountContext.ts#L21)

Internal Only hook used to access the alchemy account context.
This hook is meant to be consumed by other hooks exported by this package.

## Example

```ts twoslash
import { useAlchemyAccountContext } from "@account-kit/react";

const { config, queryClient } = useAlchemyAccountContext();
```

## Parameters

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

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

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

      <td>
        optional context override that can be used to return a custom context
      </td>
    </tr>

  </tbody>
</table>

## Returns

[`AlchemyAccountContextProps`](../type-aliases/AlchemyAccountContextProps)

The alchemy account context if one exists

## Throws

if used outside of the AlchemyAccountProvider