Skip to content

useSigner

Hook for accessing the current Alchemy signer within a React component. It uses a synchronous external store for updates.

Import

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

Usage

import { useSigner } from "@account-kit/react";
 
const signer = useSigner();

Returns

AlchemyWebSigner | null The current Alchemy signer or null if none is available