Adena Docs
  • Intro
  • â„šī¸User Guide
    • Download
    • Sign In
      • Connect Hardware Wallet
        • Ledger
        • Keystone
      • Set Up Air-gap Account
        • Air-gap Account
      • Advanced options
        • Create New Wallet
        • Import Wallet
        • Sign In With Google
    • Sidebar Menu
      • Account Details
      • Add Account
      • Settings
        • Connected Apps
        • Address Book
        • Change Network
        • Security & Privacy
          • Change Password
          • Reveal Seed Phrase
          • Export Private Key
          • Remove Account
          • Reset Wallet
        • About Adena
    • Wallet
      • Deposit
      • Send
        • Hardware Wallets
        • Air-gap Accounts
        • Advanced Accounts
      • Manage Tokens
    • NFTs
      • Asset Details
      • Manage Collectables
      • Deposit NFT
      • Send NFT
    • Explore
    • History
    • Web3 Interactions
      • Connect to a Dapp
      • Approve a Transaction
      • Add a Network
      • Switch Networks
  • đŸ› ī¸Integrations
    • Detect Wallet
    • Establish Connection
    • Get Account Info
    • Transactions
      • Sign & Send a Transaction
      • Sign Amino
      • Sign a Transaction
    • Network
      • Add a Custom Network
      • Switch Network
    • Detect Events
      • Detect an Account Change
      • Detect a Network Change
    • Use Adena Wallet SDK
      • JavaScript
    • Errors
    • Displaying Your App
    • Sample Usage
  • 📚Resources
    • FAQ
    • Audits
    • Brand Assets
      • Download Logo
      • Style Guide
      • Components
Powered by GitBook
On this page
  1. Integrations

Detect Wallet

PreviousSwitch NetworksNextEstablish Connection

Last updated 8 months ago

Adena enables web applications to interact with the Gnoland blockchain, allowing users to sign and broadcast transactions.

Once the Adena Wallet Chrome Extension is installed on the user's device, the adena object will be injected into the window. To detect the installation of Adena Wallet, look for window.adena. If Adena is not installed, we suggest directing your users to on a new tab.

Sample Code

window.onload = async() => {
  //look for the adena object
  if (!window.adena) {
    //open adena.app in a new tab if the adena object is not found
    window.open("https://adena.app/", "_blank");
  } else {
    //write your logic here
    //the sample code below displays a method provided by Adena that initiates a connection
    await adena.AddEstablish("Adena");
  }
};
đŸ› ī¸
our website