Nabox
English
English
  • Introduction
    • Litepaper
  • Nabox Wallet User Guide
    • How to use Nabox Wallet (Mobile App)
    • How to use Nabox Wallet (Browser Extension)
    • Nabox App how to collect a page?
    • Nabox App how to delete an account
    • Nabox Energy Rental Service
  • Detect Nabox Wallet Environment
  • Call up Nabox App to open DApp/Transfer
  • DApp connects to Nabox Wallet (EVM)
  • DApp connects to Nabox Wallet (Bitcoin)
  • DApp connects to Nabox Wallet (Solana)
  • DApp connects to Nabox Wallet (Cosmos)
  • DApp connects to Nabox Wallet (Tron)
  • DApp connects to Nabox Wallet (BCH/FCH)
  • DApp connects to Nabox Wallet (NULS)
  • SwapBox V1 API
  • SwapBox V1 SDK
  • SwapBox V2 API
  • PayBox Open API
  • Nabox ID authorization and verification
  • Submit Token
  • Submit DApp
Powered by GitBook
On this page
  • Install the App
  • Connect Nabox Extension

Was this helpful?

DApp connects to Nabox Wallet (EVM)

PreviousCall up Nabox App to open DApp/TransferNextDApp connects to Nabox Wallet (Bitcoin)

Last updated 6 months ago

Was this helpful?

Nabox Chrome Extension

Install the App

Acquire Nabox Extension in Google store

Acquire source code

Acquire the latest source code from GitHub:

Installation dependency

npm install

Runing locally

npm run serve

Packaging locally

npm run build

Nabox Extension add the local package

Connect Nabox Extension

1.window.NaboxWallet

Nabox Wallet injected a NaboxWallet object which is similar to MetaMask; You can refer to the method of connecting MetaMask for adaptation;

Nabox Wallet implements some API of MetaMask, including:

"eth_accounts",

"eth_requestAccounts",

“eth_sign”,

"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

Nabox Wallet will inject ethereum objects into the page when the user does not install or enable MetaMask;

Download
https://github.com/naboxwallet