Google chrome extension for helios wallet.
- Install Node.js (version 10.18.1)
- npm install in
\myAppfolder - Build the project to the
\myAppfolder withionic build --prodonce compiled usewebpack --config webpack.dev.jsonce installed and compiled you should go to the extensions section in google chrome and enable developer mode and select the unzipped load button and choose the\wwwin your project folder and finally you will have the functional extension.
helios.enable()To enable the extension on your websitehelios.selectedAddress()select user default wallet- example of sending transaction with waiting for response.
from:is the address of the user who will send the helios.to:is the address of the user who will receive the helios.value:amount of helios that will travel in the transaction.
helios.send({
from: helios.selectedAddress(),
to: '0x07D62a36D35261AfEcF6cb89382D393a398edc2c',
value: 10
})
- example of sending transaction without waiting for responses.
from:is the address of the user who will send the helios.to:is the address of the user who will receive the helios.value:amount of helios that will travel in the transaction.
helios.sendAsync({
from: helios.selectedAddress(),
to: '0x07D62a36D35261AfEcF6cb89382D393a398edc2c',
value: 10
})
helios.ping()helios.getProtocolVersion()helios.getBlockByHash(param)helios.getGasPrice()helios.getTransactionReceipt(param)helios.getTransactionByHash()helios.getBalance(param)helios.getReceivableTransactions(param)helios.getFaucet(param)helios.getConnectedNodes()helios.getHistoricalGasPrice()helios.getApproximateHistoricalNetworkTPCCapability()helios.getApproximateHistoricalTPC()helios.sendRewardBlock(param)
For more information on the methods, read the web 3 documentation
npm install
ionic build --prod
webpack --config webpack.dev.js
- Angular ( version 8.2.14)
- Ionic (version 5.4.16)
- Node.js (version 10.18.1)
Helios Protocol