🔬
Teleport Wallet Docs
  • Guides
    • Teleport Wallet
    • Tutorial
      • How to backup wallet
      • How to create/import wallet
      • How to manage accounts
      • How to manage networks?
      • How to manage wallets
      • What's the difference between ID Wallet and Normal Wallet
      • What's the difference between wallet and account
      • About 'Default Wallet'
      • Disconnect with dApps
      • How to set Night Mode
  • Use Cases
    • For Engineers
      • DApp Connection
      • GitHub Integration
    • For Support
      • Discord Integration
      • Feedback via Google forms
Powered by GitBook
On this page
  • Install the App
  • Connect Plugin
  • 1.window.teleport
  • 2.window.ethereum
  1. Use Cases
  2. For Engineers

DApp Connection

PreviousFor EngineersNextGitHub Integration

Last updated 2 years ago

Install the App

Install Teleport Wallet extension from Google Chrome Web Store

Acquire source code

Acquire source code from your dapp repository

Installation dependency

npm install

Connect Plugin

1.window.teleport

Teleport Wallet injected a teleport object which is similar to Metamask; You can refer to the method of connecting metamask for adaptation;

Teleport Wallet implements API of EIP-1193, including:

  • "eth_accounts",

  • "eth_requestAccounts",

  • "personal_sign",

  • "wallet_addEthereumChain",

  • "wallet_switchEthereumChain",

  • "eth_sendTransaction",

  • "eth_getBalance",

  • "eth_getCode",

  • "eth_call",

  • "eth_estimateGas",

  • "eth_getTransactionByHash",

  • "eth_blockNumber",

  • "eth_getTransactionReceipt",

  • "net_version",

  • "eth_chainId",

  • "eth_gasPrice",

And "accountsChanged", "chainChanged" events

2.window.ethereum

Teleport Wallet will inject ethereum objects into the page when the user does not enable metamask or select Teleport Wallet as ‘Default Wallet’ as below:

The ‘Default Wallet’ setting will also set window.ethereum.isMetamask when dapp loading the first time.

LogoTeleport Wallet