Skip to content

useAlchemyAccountContext

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

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

Usage

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

Parameters

override

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

Returns

AlchemyAccountContextProps The alchemy account context if one exists