DApp connects to Nabox Wallet (EVM)
Nabox Chrome Extension
Install the App
Acquire Nabox Extension in Google store
Acquire source code
Acquire the latest source code from GitHub: https://github.com/naboxwallet
Installation dependency
Runing locally
Packaging locally
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;
Last updated