watchChain
Allows you to subscribe to changes of the chain in the client store.
Import
Usage
Parameters
config
AlchemyAccountsConfig
the account config object
Returns
(onChange: (chain: Chain) => void) => (() => void)
a function which accepts an onChange callback that will be fired when the chain changes and returns a function to unsubscribe from the store