Skip to content
Alchemy Logo

useAlchemyAccountContext

function useAlchemyAccountContext(override?): AlchemyAccountContextProps;

Defined in: account-kit/react/src/hooks/useAlchemyAccountContext.ts:21

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

import { useAlchemyAccountContext } from "@account-kit/react";
 
const { config, queryClient } = useAlchemyAccountContext();

ParameterTypeDescription

override?

AlchemyAccountContextProps

optional context override that can be used to return a custom context

AlchemyAccountContextProps

The alchemy account context if one exists

if used outside of the AlchemyAccountProvider

Was this page helpful?