Check whether Phantom is currently connected to your dapp using the isConnected method.
window.phantom.ethereum.isConnected() // true if connected // false if not
Was this page helpful?