DApp connects to Nabox Wallet (EVM)
Last updated
Was this helpful?
Last updated
Was this helpful?
Nabox Chrome Extension
Acquire the latest source code from GitHub:
Installation dependency
Runing locally
Packaging locally
Nabox Extension add the local package
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
Nabox Wallet will inject ethereum objects into the page when the user does not install or enable MetaMask;