Mining STEEM For Dummies
Setup STEEM wallet and start mining step by step guide
It is recomended that you have Ubuntu 14.04 LTS or a later version.
Open a terminal window and enter these lines one by one, give each one time to finish:
sudo apt-get update
sudo apt-get install git cmake g++ python-dev autotools-dev libicu-dev build-essential libbz2-dev libboost-all-dev libssl-dev libncurses5-dev doxygen libreadline-dev dh-autoreconf
wget -O boost_1_60_0.tar.gz http://sourceforge.net/projects/boost/files/boost/1.60.0/boost_1_60_0.tar.gz/download
tar xzvf boost_1_60_0.tar.gz
cd boost_1_60_0
./bootstrap.sh --prefix=/usr/local
./b2 install
cd
git clone https://github.com/bitcoin/secp256k1
cd secp256k1
./autogen.sh
./configure
make
./tests
cd
git clone https://github.com/steemit/steem
cd steem
git submodule update --init --recursive
cmake -DCMAKE_BUILD_TYPE=Release -DENABLE_CONTENT_PATCHING=OFF -DLOW_MEMORY_NODE=ON
make
cd programs/steemd
./steemd --rpc-endpoint --seed-node="seed.steemed.net:2001" --seed-node="52.74.152.79:2001"
start a new terminal window and type:
cd steem/programs/cli_wallet
./cli_wallet
set_password "PASSWORD"
unlock "PASSWORD"
suggest_brain_key
- copy the output and save it in a secure location:
- you should never give your wif private key to anyone.
`{
"brain_priv_key": "FULK DEBUG EARTH IMAGINE BABBLE POPIFY PREFEED EMBIND FOREPAW KAHILI ...",
"wif_priv_key": "5JsPmgU1dfKu8SHWAWkBKw1XGz97Kwz4DLwgm2bSz99qtFqTAkp",
"pub_key": "STM73jgNRFLTKSTaGWv8QfXzSopUZBsQGmrECWPvpnemjyAcBfzAc"
}`
you will need your wif private key for the config.ini file in a minute,
this is a good time to load YOUR key in your cli_wallet terminal window like this:
import_key 5JsPmgU1dfKu8SHWAWkBKw1XGz97Kwz4DLwgm2bSz99qtFqTAkp
now exit your cli_wallet terminal:
ctrl + c
This is a good time to pick your account/miner name
** Account names must be all lower case, less than 15 characters, and start with a letter
lets say you pick account name george1234
you must check if the account already exists, go to:
https://steemit.com/@george1234
if you get an error like this:
Server error (500) 10 assert_exception: Assert Exception itr != accounts_by_name.end(): Unable to find account 'george1234'. Did you forget to add a record for it? {"acct":"george1234"} th_a database.cpp:313 get_account
then you are in luck and the account name is available to claim, if not try another until you get this error.
now you have what you need to edit your config.ini file and start mining.
with your favorite text editor open the file steem/programs/steemd/witness_node_data_dir/config.ini
replace george1234 with your account name and this wif key 5JsPmgU1dfKu8SHWAWkBKw1XGz97Kwz4DLwgm2bSz99qtFqTAkp with yours.
# P2P nodes to connect to on startup (may specify multiple times)
seed-node = seed.steemed.net:2001
seed-node = seed.steemed.com:2001
seed-node = 52.74.152.79:2001
seed-node = 45.32.186.90:1779
seed-node = 45.32.186.90:1781
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 = 85.214.65.220:2001
# name of witness controlled by this node (e.g. initwitness )
witness = "george1234"
# name of miner and its private key (e.g. ["account","WIF PRIVATE KEY"] )
miner = ["george1234","5JsPmgU1dfKu8SHWAWkBKw1XGz97Kwz4DLwgm2bSz99qtFqTAkp"]
# Number of threads to use for proof of work mining
mining-threads = 2
these are the parts you change, leave the rest as is and save your config file
go back to the steemd terminal window (hopefully it synced by now):
ctrl+c
to stop steemd and restart it with the following line:
./steemd --rpc-endpoint
it should start mining as soon as it catches up to the latest block.
- after mining your first block, you set claim to your account name
when that happens here is a few things you can do in your CLI_wallet (change george1234 to your account name):
unlocked >>> get_account "george1234"
unlocked >>> list_my_accounts
unlocked >>> vote_for_witness george1234 joseph true true
unlocked >>> vote george1234 "joseph" "mining-steem-for-dummies" 100 true
- if you get an error while following this guide please stop, and go to http://steem.herokuapp.com for assistance
- if you assist someone with this step by step guide, please reply with FAQ's and answers.
Thank you.
For future visitors hoping to get mining - This guide wont work anymore sorry
(prompted by this comment , upvoted for visibility)
Hi @ausbitbank, you are the only witness I have voted for so far. Just saying hi. Also, thank you, you are my best voter. Further, I would highly appreciate an indication of how Steem is mined since you have indicated this post no longer works.
Thanks for your support :)
Steem is no longer mined through traditional proof of work mining for a few hardforks now.
Block production is now handled by DPOS witnesses and rewards are split between authors, curators and witnesses. You can see the breakdown on where new steem goes on the front of steemdb.com
Very helpful thank you. I was about to look into mining steem since I didnt realize you could do that at all. Then I read your post and you saved me a bunch f wasted time. thank you.
Oh, that sucks. So the only remaining account methods are by proxy with third parties and through cli with your own account? That's a bit sad.
super, thanks for heads up
So how do I set up a wallet and start witnessing, are there a set of current instructions I can follow. What sort of results are people getting that are already witnessing?
Yes, instructions exist but if you can't do basic research I don't think you should be a witness.
I have been and i keep finding old stuff. But thanks for the help.
Thanks @joseph, it works. But my rate is 1 hps and estimated time to produce about 17 mln minutes.
My CPU is i7-6700K Skylake. So I doubt that 1 hps is normal. What do I do wrong?
you did not do anything wrong, 1hps means you are syncing, once synced your real hps will show.
Mine is up and running but my estimated time to produce is anywhere from 400 to 3000 minutes it seems like.... Hashrate around 13k. It keeps telling me I am getting 3, 5, etc. transactions. Sorry if this is totally ignorant but this is my first time attempting anything like this. Is this working properly? I have an i7 920 desktop, 12gb ram devoted, created 8 accounts - was that too much?
syncing! wait..
How long would it take to sync ?
Do syncing and mining processes need to be separated (when i try to mine before syncing is done, nothing happens)
thanks you,help me back
Runnint the first the the ./cli_wallet fail on:
Logging RPC to file: logs/rpc/rpc.log Starting a new wallet 2318539ms th_a main.cpp:154 main ] wdata.ws_server: ws://localhost:8090 2318550ms th_a main.cpp:159 main ] wdata.ws_user: wdata.ws_password: 2318675ms th_a websocket_api.cpp:88 on_message ] message: {"id":1,"result":true} 2318676ms th_a websocket_api.cpp:88 on_message ] message: {"id":2,"result":2} 2318677ms th_a websocket_api.cpp:88 on_message ] message: {"id":3,"result":3} 2318677ms th_a websocket_api.cpp:88 on_message ] message: {"id":4,"error":{"code":1,"message":"10 assert_exception: Assert Exception\nit->second != nullptr: \n {}\n th_a api.hpp:189 get_api_by_name","data":{"code":10,"name":"assert_exception","message":"Assert Exception","stack":[{"context":{"level":"error","file":"api.hpp","line":189,"method":"get_api_by_name","hostname":"","thread_name":"th_a","timestamp":"2016-05-14T07:38:38"},"format":"it->second != nullptr: ","data":{}}]}}} 0 exception: unspecified 10 assert_exception: Assert Exception it->second != nullptr: {} th_a api.hpp:189 get_api_by_name {"error":"10 assert_exception: Assert Exception\nit->second != nullptr: \n {}\n th_a api.hpp:189 get_api_by_name","data":{"id":4,"error":{"code":1,"message":"10 assert_exception: Assert Exception\nit->second != nullptr: \n {}\n th_a api.hpp:189 get_api_by_name","data":{"code":10,"name":"assert_exception","message":"Assert Exception","stack":[{"context":{"level":"error","file":"api.hpp","line":189,"method":"get_api_by_name","hostname":"","thread_name":"th_a","timestamp":"2016-05-14T07:38:38"},"format":"it->second != nullptr: ","data":{}}]}}}} th_a state.cpp:38 handle_reply
Version 0.4.3?
I upgrade and it OK now :-)
Note for anyone who found this guide on Google:
PoW Mining was removed from Steemit with hard fork 18. Any guides for mining Steem are thus out of date.
Does this mean there is no way to mine steem now? Or just that these instructions won't work?
There's no way to PoW mine now, it's all PoS witnessing
How do I pos witness? I'm still fairly new just so you know! :)
I have to correct myself, PoDS - Proof of Delegated Stake. That means your "rank" in the witness list is dependent on witness votes from other users. These votes are stake weighted, and stake here is Steem Power. You can find more about these concepts in the FAQs and various links on steemit.com help area.
Here's two good witness guides that will get you most of the way
steemit.com/witness-category/@krnel/complete-witness-installation-guide
steemit.com/witness-category/@klye/the-complete-noob-guide-to-steem-witness-setup
You should also join steemit.chat channel #witness and seek advice there.
In terms of server hosting, @someguy123 apparently has a service specifically aimed at witnesses that several use, check out his post on Privex. @l0k1 always says don't use your private keys on a server which you don't control - I agree. Be careful with them.
Good luck!
A good beginner guide!
A few comments:
Perhaps you can mention what are the hardware needed for mining and how much disk space needed.
How do know or check if the blockchain is synced.
the steem blockchain is already at 8xx Mb in size. So best bet is get a 32 or bigger SD card for your RPI or 2 TB hard disks.
If this is supposed to be for dummies, I'd fatten it up with a bit more explanation?
Well there is dumb and dumber, any dumber than this and I would suggest the facebook approach.
Register a steemit account and make some posts, Steemit by design pays a lot more for content than mining.
You might want to add a
sudo
to the front of all your install options for those who aren't logged in as root while performing the install. Great guide.Yes. At least here
I got my miner finally running. I'm using Qubes OS, which doesn't have Ubuntu templates, so I made it in Debian 8.
Had to do a few tricks in addition to this guide:
For Boost:
sudo ./b2 install
Otherwise it doesn't have rights to copy the files.
Before Steem cmake install package pkgconf
sudo apt-get install pkgconf
then runpkgconf openssl
in the terminal. Otherwise cmake doesn't find openssl.I need to uninstall Boost, because I keep getting this:
terminate called after throwing an instance of 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<std::logic_error> >'
I tried both
sudo ./b2 uninstall
andsudo ./b2 remove
should I be doing some kind of
unmake
wish the site had a way to bookmark or favorite a post so that I can refer to it later when I have time to follow the instructions
If you're using Digital Ocean and you're seeing messages like:
g++: internal compiler error: Killed (program cc1plus)
Here's a simple fix:
sudo dd if=/dev/zero of=/var/swap.img bs=1024k count=1000
sudo mkswap /var/swap.img
sudo swapon /var/swap.img