Skip to main content

useDisconnectWallet

The useConnectWallet hook is a mutation hook for disconnecting from an active wallet connection, if currently connected.

Live Editor
function UseDisconnectWalletExample() {
    const { mutate: disconnect } = useDisconnectWallet();
    return (
        <div style={{ padding: 20 }}>
            <div>
                <button onClick={() => disconnect()}>Disconnect</button>
            </div>
        </div>
    );
}
Result
Loading...

Arguments

There are no arguments for useConnectWallet.