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
| Parameter | Type | Description |
|---|---|---|
config | TConfig | The configuration |
options? | { chainId?: keyof TConfig["chains"]; } | Additional options |
options.chainId? | keyof TConfig["chains"] | - |
Returns
Observable<WalletAccount[]>
The currently connected accounts