Nabox
English
English
  • Introduction
  • 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 TRON Energy Rental Service
  • Detect Nabox Wallet Environment
  • Call up Nabox App to open DApp/Transfer
  • DApp connects to Nabox Wallet (EVM)
    • Get wallet address
    • Get the wallet's chainId
    • Signing transactions
    • Switch Network
  • DApp connects to Nabox Wallet (Bitcoin)
    • Provider API
  • DApp connects to Nabox Wallet (Solana)
    • Provider API
  • DApp connects to Nabox Wallet (TRON)
    • Provider API
  • DApp connects to Nabox Wallet (BCH/FCH)
    • BCH Provider API
    • FCH Provider API
  • DApp connects to Nabox Wallet (NULS/NERVE/NAI)
    • Provider API
  • DApp connects to Nabox Wallet (TON)
    • Provider API
  • DApp connects to Nabox Wallet (Aptos)
    • Provider API
  • DApp connects to Nabox Wallet (SUI)
    • Provider API
  • 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

DApp connects to Nabox Wallet (EVM)

EVM Tether DApp connects to Nabox wallet.

PreviousCall up Nabox App to open DApp/TransferNextGet wallet address

Last updated 1 month ago

CtrlK
  • 1.window.NaboxWallet
  • 2.window.ethereum

1.window.NaboxWallet

Nabox Wallet injects the window.NaboxWallet object into the page, which is similar to the ethereum object injected by MetaMask. You can adapt it by referring to the way to adapt MetaMask.

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;