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

Establish Connection

For a web application to send requests by using functions available on Adena, it must establish a connection with the account with the AddEstablish method. Once the user approves the connection, the domain will be added to a locally-stored whitelist.

The application will encounter Error 1000 if it attempts to use a function without having established a connection.

Code

adena.AddEstablish("name")

Params

Key
Type
Description

name

sting

The name of the website requesting to connect

Response

Key
Type
Description

code

number

Numeric result code

status

string

Returns success or failure

type

string

Response type

message

string

Descriptive message of the result

data

object

-

Sample Request

//the name string will be displayed on the connection pop-up
adena.AddEstablish("adena")

Sample Response

{
    "code": 0,
    "status": "success",
    "type": "CONNECTION_SUCCESS",
    "message": "The connection has been successfully established.",
    "data": {}
}
PreviousDetect WalletNextGet Account Info

Last updated 1 year ago

đŸ› ī¸