Alchemy Logo

useAlchemyAccountContext

const useAlchemyAccountContext: (override?) => AlchemyAccountContextProps;

Defined in: account-kit/react/dist/types/hooks/useAlchemyAccountContext.d.ts:17

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?