useAlchemyAccountContext

1function 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.

Example

import { 
const useAlchemyAccountContext: (override?: AlchemyAccountContextProps) => AlchemyAccountContextProps

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

useAlchemyAccountContext
} from "@account-kit/react";
const {
const config: AlchemyAccountsConfig
config
,
const queryClient: QueryClient
queryClient
} =
function useAlchemyAccountContext(override?: AlchemyAccountContextProps): AlchemyAccountContextProps

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

useAlchemyAccountContext
();

Parameters

ParameterTypeDescription

override?

AlchemyAccountContextProps

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

Returns

AlchemyAccountContextProps

The alchemy account context if one exists

Throws

if used outside of the AlchemyAccountProvider