Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Since I couldn't find much documentation about the command-line-version of the Neblio wallet (nebliod, the daemon-version of Neblio's wallet, which is available for the RaspberryPi), I played around with it and wanted to write down the commands I may need the most.
- I found out all of this by typing "./nebliod help", which shows you the list of all commands, and going through the list, trying things, guessing things, etc.
- FYI: There's also "./nebliod --help", which shows you all the different parameters for the commands from above.
- (This document was originally posted here: https://www.reddit.com/r/Neblio/comments/7pqk44/a_guide_to_nebliod_the_commandline_version_daemon/)
- First and foremost, EVERYONE should read this:
- https://nebl.io/2017/08/18/how-to-secure-backup-restore-or-transfer-your-neblio-wallet/
- It contains EXTREMELY useful and important information regarding wallet-safety and wallet-handling.
- Starting the wallet-daemon:
- ./nebliod -daemon
- This is probably the first thing you want do after the installation. The process will stay active even when you log out of your shell.
- The very first time you start this process, the wallet will have to scan through a whole lot of transactions to get up to speed. This can take a while (as in: hours).
- On a RaspberryPi B (first generation), it took pretty much all day to sync up (6-8 hours). During that time, the CPU was constantly at 100%. Once it was synced up, the CPU usage was much lower.
- Stopping the wallet-daemon:
- ./nebliod stop
- Once the wallet-daemon is running, you can use these commands:
- Show me my addresses to receive NEBL!
- ./nebliod listreceivedbyaddress 1 true
- Lists available addresses in the wallet (Not sure what the "1" does).
- These are currently existing addresses in your wallet which you can use to send your Neblio coins from an exchange into your wallet.
- If you or someone else sent something to your one of the addresses in your wallet, enter this command every now and then until you see that the coins have arrived.
- I need a new NEBL address!
- ./nebliod getnewaddress
- Generates a fresh, new address. It will be ADDED to the wallet. Any old addresses will still be there and can still be used as well.
- Show me some information!
- ./nebliod getinfo
- Shows some nice information like version-number, your total balance, your IP-address, number of connections, etc.
- Show me my staking information!
- ./nebliod getstakinginfo
- Shows information about the staking-status
- Send money to someone!
- ./nebliod sendtoaddress <target-address> <amount>
- Sends funds to another address. I'm not sure if it randomly takes funds from any of the addresses in your wallet or if there's any order to it.
- Encrypt my wallet so that if someone grabs my wallet.dat, he can't steal my NEBL!
- ./nebliod encryptwallet <passphrase>
- Encrypts the wallet with the passphrase. BUT: Be careful with certain special characters in a Linux-shell! I've had some weird behavior, so I'm gonna be REEEEALLY careful with this one. You definitely don't want things to go sideways on this step.
- Someone found out what my passphrase is, I need to change it!
- ./nebliod walletpassphrasechange <old_passphrase> <new_passphrase>
- Change the passphrase of an ALREADY ENCRYPTED wallet. Remember to be careful about special characters in a Linux-shell (see above).
- Unlock my wallet! (This is needed if your wallet is encrypted. If you don't unlock it, you won't stake!)
- ./nebliod walletpassphrase <your_passphrase> <timeout_in_seconds> <true/false>
- Dear Devs: Why didn't you name this something simpler to find like "unlock"? :) It took me forever to find this!
- This will unlock your wallet, using your passphrase. The timeout in seconds is the amount of seconds your wallet will stay unlocked. After this amount of seconds is over, the wallet will be locked again (and you'll stop staking again). The last parameter is to determine whether or not you want to unlock your wallet for STAKING ONLY. If so, then you won't be able to SEND any funds (so it's kind of a safety-mode).
- Now, the one thing I haven't found out yet is: How do you unlock your wallet so that it STAYS unlocked indefinitely? (or rather, until you stop the wallet-daemon) I tried to set the timeout to 0 and to -1, but that didn't work.
- So, as a workaround, one can use this:
- ./nebliod walletpassphrase <passphrase> 31000000 true
- 31 million seconds are a little more than 1 year. Assuming you'll PROBABLY restart your RPi at least once a year, this should work.
- Note: if the wallet is unlocked for staking only, but at some point you want to SEND coins away, you need to lock it, then unlock it WITHOUT the staking parameter, send the coins, lock it, then unlock it for staking. (thanks to /u/TrixAreFourKids for the hint)
- As an alternative to the command-line, if you have access to a machine running Windows, OSX or a Linux desktop, then create your wallet-file there or copy it over from your RPi and configure it the way you want it via neblioqt (the GUI). It's way easier and nicer. Once you're done, shut down the GUI, copy the wallet back to your RPi (make sure to create a backup of that file in a safe place) and start nebliod.
Add Comment
Please, Sign In to add comment