watchAccount
Watches for changes to a specific type of account and triggers the provided callback function when changes occur.
Import
Usage
Parameters
type
TAccount
The type of account to watch
config
AlchemyAccountsConfig
The configuration containing client store settings
Returns
(onChange: (account: GetAccountResult<TAccount>) => void) => (() => void)
A function that accepts a callback to be called when the account changes and returns a function to unsubscribe from the store