Skip to main content

whenAccountsChanged()

function whenAccountsChanged<TConfig>(config, options?): Observable<WalletAccount[]>;

Defined in: packages/core/src/apis/when-accounts-changed.ts:15

Gets the accounts from the configured wallets.

Type Parameters

Type Parameter
TConfig extends Config

Parameters

ParameterTypeDescription
configTConfigThe configuration
options?{ chainId?: keyof TConfig["chains"]; }Additional options
options.chainId?keyof TConfig["chains"]-

Returns

Observable<WalletAccount[]>

The currently connected accounts