Phantom Developer Documentation home pagelight logodark logo
  • Support
  • Download Phantom
  • Download Phantom
Getting Started
Mobile Deeplinks
Developer Tools and Resources
  • Support
  • GitHub
  • Community
  • Building with Phantom
    • Introduction
    https://mintlify.s3.us-west-1.amazonaws.com/phantom-e50e2e68/icons/solana.svg
    Solana
    • Get started with Solana
    • Detect the provider
    • Establish a connection
    • Send a legacy transaction
    • Send a versioned transaction
    • Sign a message
    • Error messages and codes
    https://mintlify.s3.us-west-1.amazonaws.com/phantom-e50e2e68/icons/ethereum.svg
    Ethereum, Monad, Base & Polygon
    • Get started with EVM networks
    • Detect the provider
    • Establish a connection
    • Send a transaction
    • Sign a message
    • Provider API Reference
      • Provider API reference
      • Properties
      • Events
      • Methods
        • Methods
        • isConnected
        • request
      • Error messages and codes
    https://mintlify.s3.us-west-1.amazonaws.com/phantom-e50e2e68/icons/sui.svg
    Sui
    • Get started with Sui
    • Detect the provider
    • Establish a connection
    • Send a transaction
    • Sign a message
    https://mintlify.s3.us-west-1.amazonaws.com/phantom-e50e2e68/icons/bitcoin.svg
    Bitcoin
    • Get started with Bitcoin
    • Detect the provider
    • Establish a connection
    • Send a transaction
    • Sign a message
    • Provider API reference
    Methods

    isConnected

    Checks if the wallet is connected to the dapp.

    ​
    Parameters

    None

    ​
    Response

    Boolean

    Copy
    Ask AI
    window.phantom.ethereum.isConnected()
    // true if connected
    // false if not
    

    Was this page helpful?

    Methodsrequest
    websitegithub
    Powered by Mintlify
    On this page
    • Parameters
    • Response
    Assistant
    Responses are generated using AI and may contain mistakes.