How to use the Steem CLI wallet

in #steem8 years ago (edited)

<p dir="auto">This guide will show you step-by-step how to set up a new wallet and make a transfer of Steem Dollars to another account. <p dir="auto">In order to use the Steem wallet you need to have the Steem daemon (steemd) running. It will act as window to the blockchain, through which your wallet connects. <p dir="auto"><em>If you want to connect to an external Steem daemon you can skip step <strong>2 - 4.1a and jump straight to <strong>4.1b after you've downloaded the wallet. <h2>1. Downloads <p dir="auto">I'll cover this step for Windows only but there are many <a href="https://steem.io/documentation/how-to-build/" target="_blank" rel="nofollow noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">guides on how to set it up on other platforms. <p dir="auto">Download <a href="https://github.com/btscube/steem/releases/tag/0.13.0-rc3" target="_blank" rel="nofollow noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">Steem Windows Wallet and Miner and <a href="https://www.microsoft.com/en-us/download/details.aspx?id=40784" target="_blank" rel="nofollow noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">Visual C++ Redistributable Packages for Visual Studio 2013 in case you don't already have it installed. Unpack the wallet/miner in a location of your choice. <h2>2. Configure steemd <p dir="auto">Start <code>steemd. It should say "No witnesses configured!". Close <code>steemd. It has now placed a <strong>config.ini file in <em>witness_node_data_dir. <p dir="auto">Open the config file and add the following after <em># P2P nodes to connect to on startup: <pre><code>seed-node = 52.38.66.234:2001 seed-node = 52.37.169.52:2001 seed-node = 52.26.78.244:2001 seed-node = 192.99.4.226:2001 seed-node = 46.252.27.1:1337 seed-node = 81.89.101.133:2001 seed-node = 52.4.250.181:39705 seed-node = steemd.pharesim.me:2001 seed-node = seed.steemed.net:2001 seed-node = steem.clawmap.com:2001 seed-node = seed.steemwitness.com:2001 seed-node = steem-seed1.abit-more.com:2001 <p dir="auto">Also add an RPC endoint after <em># Endpoint for websocket RPC to listen on: <p dir="auto"><code>rpc-endpoint = 127.0.0.1:8090 <h2>3. Start steemd <p dir="auto">After you've saved the config file start <code>steemd again. It will now sync the blockchain which will take a while. You can speed this up by <a href="https://steemit.com/steem/@bitcube/recovering-your-hacked-account-with-a-local-ms-windows-steem-wallet" target="_blank" rel="nofollow noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">downloading the blockchain separately (see section <strong>Download Wallet). <p dir="auto">When <code>steemd starts outputting "Got X transactions..." you know it is up to date and you can start using your wallet. <p dir="auto"><span><img src="https://images.hive.blog/768x0/https://www.steemimg.com/images/2016/08/19/got_transaction428a3.png" srcset="https://images.hive.blog/768x0/https://www.steemimg.com/images/2016/08/19/got_transaction428a3.png 1x, https://images.hive.blog/1536x0/https://www.steemimg.com/images/2016/08/19/got_transaction428a3.png 2x" /> <h2>4. Wallet <h3>4.1a Start wallet for local daemon <p dir="auto">Start <code>cli_wallet. You should see something like this: <p dir="auto"><span><img src="https://images.hive.blog/768x0/https://www.steemimg.com/images/2016/08/19/new_walletd46a5.png" srcset="https://images.hive.blog/768x0/https://www.steemimg.com/images/2016/08/19/new_walletd46a5.png 1x, https://images.hive.blog/1536x0/https://www.steemimg.com/images/2016/08/19/new_walletd46a5.png 2x" /> <h3>4.1b Start wallet for external daemon <p dir="auto"><em>(skip this step if you did <strong>2 - 4.1a) <p dir="auto">It's possible to use the wallet without your own <code>steemd running by connecting to an external Steem daemon. See the following guides: <ul> <li><a href="https://steemit.com/steem/@steem-id/tutorial-how-to-use-cliwallet-without-downloading-complete-blockchain-on-windows-x64" target="_blank" rel="nofollow noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">[Tutorial] How to use cli_wallet without downloading complete blockchain on Windows x64<span> by <a href="/@steem-id">@steem-id <li><a href="https://www.steem.center/index.php?title=How_to_obtain_the_STEEM_client#Running_CLI_Wallet_without_a_Steem_Daemon" target="_blank" rel="nofollow noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">Running CLI Wallet without a Steem Daemon on <a href="https://www.steem.center" target="_blank" rel="nofollow noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">steem.center <h3>4.2 Set password <p dir="auto">Your fresh wallet needs to have a password before you can start using it. Set a password with the following command: <p dir="auto"><code>set_password yourpassword <p dir="auto"><span><img src="https://images.hive.blog/768x0/https://www.steemimg.com/images/2016/08/19/set_password67a17.png" srcset="https://images.hive.blog/768x0/https://www.steemimg.com/images/2016/08/19/set_password67a17.png 1x, https://images.hive.blog/1536x0/https://www.steemimg.com/images/2016/08/19/set_password67a17.png 2x" /> <p dir="auto">This is the password to your wallet and has nothing to do with your Steem account yet. <h3>4.3 Unlock wallet <p dir="auto">After setting a password your wallet will be locked. Unlock it using the password you provided above: <p dir="auto"><code>unlock yourpassword <p dir="auto">If successful the first word in the terminal will say <code>unlocked: <p dir="auto"><span><img src="https://images.hive.blog/768x0/https://www.steemimg.com/images/2016/08/19/unlockede622d.png" srcset="https://images.hive.blog/768x0/https://www.steemimg.com/images/2016/08/19/unlockede622d.png 1x, https://images.hive.blog/1536x0/https://www.steemimg.com/images/2016/08/19/unlockede622d.png 2x" /> <h3>4.4 Import keys <p dir="auto">You're now ready to link your wallet to your account. For transferring Steem Dollars we need to import your <code>Active private key. It can be retrieved from the <code>Permissions tab on your account page at <a href="https://steemit.com" target="_blank" rel="nofollow noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">steemit.com. <p dir="auto"><code>import_key PRIVATEKEY <h3>4.5 Check that your account is linked <p dir="auto">If you run <code>list_my_accounts you should see your account listed: <p dir="auto"><span><img src="https://images.hive.blog/768x0/https://www.steemimg.com/images/2016/08/19/my_accounts753e1.png" srcset="https://images.hive.blog/768x0/https://www.steemimg.com/images/2016/08/19/my_accounts753e1.png 1x, https://images.hive.blog/1536x0/https://www.steemimg.com/images/2016/08/19/my_accounts753e1.png 2x" /> <h3>4.6 Make a transfer <p dir="auto"><code>transfer "lantto" "johanherman" "0.001 SBD" "Transfer from CLI wallet" true <p dir="auto"><span><img src="https://images.hive.blog/768x0/https://www.steemimg.com/images/2016/08/19/successful_transfer84dcc.png" srcset="https://images.hive.blog/768x0/https://www.steemimg.com/images/2016/08/19/successful_transfer84dcc.png 1x, https://images.hive.blog/1536x0/https://www.steemimg.com/images/2016/08/19/successful_transfer84dcc.png 2x" /> <p dir="auto">Success! <h2>5. That's it! <p dir="auto">For a full list of commands you can use the <code>help command. Remember that certain actions require you to import certain keys. In this guide we only imported the <code>Active key. For a comprehensive post about the different keys please see <a href="https://steemit.com/steemit-guides/@pfunk/a-user-s-guide-to-the-different-steem-keys-or-passwords" target="_blank" rel="nofollow noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">this<span> article by <a href="/@pfunk">@pfunk. <p dir="auto">Let me know if you have any questions or feedback! <h2>Useful links <ul> <li><a href="https://steemit.com/steemhelp/@hannixx42/cliwallet-commands-v0" target="_blank" rel="nofollow noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">cli_wallet commands v0.5.9 - A Quick Reference<span> by <a href="/@hannixx42">@hannixx42 <li><a href="http://piston.readthedocs.io/" target="_blank" rel="nofollow noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">Piston<span> by <a href="/@xeroc">@xeroc <li><a href="https://steemit.com/steem/@bitcube/recovering-your-hacked-account-with-a-local-ms-windows-steem-wallet" target="_blank" rel="nofollow noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">Recovering your hacked account with a local MS Windows Steem Wallet<span> by <a href="/@bitcube">@bitcube <li><a href="https://steemit.com/steemit/@khanhsang/a-quick-guide-on-how-to-mine-steem-on-windows" target="_blank" rel="nofollow noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">A Quick Guide on How to Mine Steem on Windows<span> by <a href="/@khanhsang">@khanhsang <li><a href="https://steemit.com/steem/@dantheman/how-to-start-a-test-network" target="_blank" rel="nofollow noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">How to start a test network<span> by <a href="/@dantheman">@dantheman <hr /> <h2><span>If you like this please give me a follow! <a href="/@lantto">@lantto
Sort:  

Wow ...
I can try this ....
Any specifications for the system to be used ?

Thanks for linking to my article :)

It's the best article I've seen on the subject so thanks for that! :)

I think you could access this via python as well, with the piston-steem module. I have to check it out. thanks for the tutorial @lantto!

Thanks! I've added Piston to Useful links.

Hello, just now I'm trying to mine steems .. yet in test phase ...

if I see this during the elaboration

steem.jpg

does it mean is is not yet up to date and I still I cannot run my wallet app, correct ?

May I wait for those messages written above ?

Many thanks!!

I know you added this 5-days ago... is there a place to get up to date witness nodes? I am getting a connection error on a few witnesses.

i got it.. thanks

hi, could you explain here how you fixed it to help other people like myself thanks :)

I wish i could man, I worked for a week trying to get this running, and finally did. Two days after that my computer hard drive died and I lost everything. I was so pissed off i did not try it again. It was using a lot of power and started overheating my computer. I should have had a more powerful system. Mine was several years old. Make sure you do a search for the minimum PC requirements so this does not happen to you. Good luck... :)

Sorry to hear that man, maybe you should try again, don't give up man! Do many people keep all their steem on the website or do people tend to move it over to a paper wallet or something similar?

I get an error of No witnesses configured please add witness and no miners configured.

Saved my day... =) up and followed... If you are interested check this initiative.

Actually, is it possible to launch cli_wallet as a service with endpoint on some port, so that it would be available to scripts?

Thanks for the post! I have one question, for some reason I can't list my accounts :(
Thats my error:
10 assert_exception: Assert Exception
a0 != e: too few arguments passed to method
{}
th_a api_connection.hpp:165 fc::generic_api::call_generic
Any ideas?

Thank you! This article was really useful!

Thank you very much. I just compiled steemd from source on Ubuntu (running in Parallels VM on my Mac) and this guide has helped me to set up the wallet. Cheers!