Skip to content

disconnect ​

disconnect(config): Promise<void>

Disconnects the current wallet connection and clears associated accounts.

Import ​

ts
import { disconnect } from "@midl/core";

Example ​

ts
import { disconnect } from "@midl/core";

await disconnect(config);

Parameters ​

NameTypeDescription
configConfigThe configuration object

Returns ​

Promise<void> – Resolves when the disconnection is complete.

Released under the MIT License