Useful Commands
Account commands
Create a new account
personal.newAccount()
List all your accounts
personal.listAccounts
Get your account's balance
eth.getBalance('0x6731..address..5fa9')
If you added the JS scripts:
checkAllBalances()
Send funds
var tx = {from: "0x67319...SenderAddress...f335fa9", to: "0x84113...RecipientAddress...d4B75E4", value: web3.toWei(11000, "ether")}
personal.sendTransaction(tx, "password")
danger
For example,
11000 ether is equal to 11000 NRG.
Keep ether as default value.
Staking commands
Unlock your account for staking
personal.unlockAccount('0x67319f845917da973570704b811b641d3f335fa9', null, 0, true)
Check the status of staking
miner.stakingStatus()
Masternode commands
Deposit the collateral
masternode.depositCollateral('0x67319f845917da973570704b811b641d3f335fa9', web3.toWei('10000', 'ether'), 'password')
Withdraw the collateral
masternode.withdrawCollateral('0x67319f845917da973570704b811b641d3f335fa9', web3.toWei('10000', 'ether'), 'password')
Get your collateral's balance
masternode.collateralBalance('0x67319f845917da973570704b811b641d3f335fa9')
Get your enode's informations
admin.nodeInfo.enode
Announce your Masternode
masternode.announce('0x67319f845917da973570704b811b641d3f335fa9', admin.nodeInfo.enode, 'password')
Denounce your Masternode
masternode.denounce('0x67319f845917da973570704b811b641d3f335fa9', 'password')
Get your Masternode's status
masternode.masternodeInfo('0x67319f845917da973570704b811b641d3f335fa9')
List all your Masternodes
masternode.listMasternodes()
Change Autocompounding
Autocollaterize, when enabled, allows masternodes to automatically roll up collaterals when requisit funds have amassed. The roll up occurs at the time when masternode reward is received.
Run the script in the following guide to check the current setting and change it if desired: