DApp connects to Nabox Wallet (NULS)
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
Nabox Extension method
Check if Nabox is installed
connect Nabox
nabox.createSession()
Return the current network address of the plug-in
Send ordinary transaction
nabox .sendTransaction(tx)
Params
Description
from
Required, the currently connecting account
to
Required, receiving address
assetChainId
Required, chain id
assetId
Required, asset id
contractAddress
Optional, if it is a contract asset
remarks
optional
Ordinary transaction signature
nabox .signTransaction(tx)
Params
Description
from
Required, the currently connecting account
to
Required, receiving address
assetChainId
Required, chain id
assetId
Required, asset id
contractAddress
Optional, if it is a contract asset
Contract Create
nabox.contractCreate(data)
Params
Description
from
Required, the currently connecting account
alias
Required, contract alias
contractCode
Required, ContractCode
args
Optional
Call contract
nabox.contractCall(data)
Params
Description
from
Required, the currently connecting account
value
Required, The number of NULS transferred into the contract
contractAddress
Required, Contract address
methodName
Required
methodDesc
Optional
args
Optional
multyAssetValues
Optional, Cross-chain asset information transferred to the contract address
View contract
nabox.invokeView(data)
Params
Description
contractAddress
Required, Contract address
methodName
Required
methodDesc
Optional
args
Optional
Send contract transaction
nabox.transactionSerialize(dataInfo)
Sign message
nabox.signMessage([message, address])
Params
Descriptions
message
Required
address
Required(Authorized address)
Get public key nabox.getPub({address:''})
Params
Description
address
Required(Authorized address)
Events
accountsChanged
chainChanged
Last updated