Skip to content
Alchemy Logo

watchSignerStatus

function watchSignerStatus(config): (onChange) => any;

Defined in: account-kit/core/src/actions/watchSignerStatus.ts:20

Watches the signer status in the client store and triggers the provided callback function when the status changes.

import { watchSignerStatus } from "@account-kit/core";
// see createConfig for more information on how to create a config
import { config } from "./config";
 
watchSignerStatus(config)(console.log);

ParameterTypeDescription

config

AlchemyAccountsConfig

The configuration object containing the client store

A function that accepts a callback to be called when the signer status changes which returns a function to unsubscribe from the store

(onChange): any;

ParameterType

onChange

(status) => void

any

Was this page helpful?