Skip to content

Instantly share code, notes, and snippets.

@mikeyb mikeyb/beam_solo_mining.md
Last active Jan 15, 2020

Embed
What would you like to do?
BEAM Solo Mining Guide

BEAM Solo Mining Guide

  • Adapted from Raskul's guide
  • With help from Freshminer (sunpool.top)

Installation

  • From BEAM Downloads download the following
    • beam-wallet-cli
    • beam-node
  • Extract downloads into a folder called beam-mining

Setup

  • Create SSL certificate & key in beam-mining directory
    • openssl req -newkey rsa:4096 -nodes -keyout stratum.key -x509 -days 365 -out stratum.crt
  • Create a file called stratum.api.keys and add a alphanumeric string
    • Example: Zmohq90bfgMvLB4gjL9NS5PeAJ7CReXO3G7aZ0aW
    • You can add 1 string per line. These are used at the user in your mining client
  • Edit beam-wallet.cfg file removing the # before pass and node_addr
    • pass=abcdefghijklmnopqrstuvwxyz1234567890
    • node_addr=127.0.0.1:10000
    • Leave the rest as is
  • Initialize wallet by running this command in a terminal
    • ./beam-wallet init
    • Save the passphrase and address before continuing
  • Export miner key by running this command in a terminal
    • ./beam-wallet export_miner_key --subkey=1
    • Take the key and put in the beam-node.cfg file on the key_mine= line
  • Export owner key by running this command in a terminal
    • ./beam-wallet export_owner_key
    • Take the key and put in the beam-node.cfg file on the key_owner= line
  • Get the pass in beam-wallet.cfg and add it to the pass= line in beam-node.cfg
  • Add these entries to beam-node.cfg
    • port=10000
    • log_level=verbose
    • file_log_level=verbose
    • peer=eu-node01.mainnet.beam.mw:8100,eu-node02.mainnet.beam.mw:8100,eu-node03.mainnet.beam.mw:8100,eu-node04.mainnet.beam.mw:8100,us-node01.mainnet.beam.mw:8100,us-node02.mainnet.beam.mw:8100,us-node03.mainnet.beam.mw:8100,us-node04.mainnet.beam.mw:8100,ap-node01.mainnet.beam.mw:8100,ap-node02.mainnet.beam.mw:8100,ap-node03.mainnet.beam.mw:8100,ap-node04.mainnet.beam.mw:8100
    • stratum_port=3333
      • Make sure your firewall is allowing connections to this port if mining externally
    • stratum_secrets_path=.
  • Start the node with the following command
    • ./beam-node
    • Leave this terminal open to keep the node running
  • Wait for node to fully synchronize
  • Open another terminal window in beam-mining directory and run the command
    • ./beam-wallet listen
    • Leave this terminal open to keep the wallet listening
  • Point your miner at the ip address of this device

Config Examples

  • beam-wallet.cfg
pass=abcdefghijklmnopqrstuvwxyz1234567890
node_addr=127.0.0.1:10000
  • beam-node.cfg
port=10000
log_level=verbose
file_log_level=verbose
peer=eu-node01.mainnet.beam.mw:8100,eu-node02.mainnet.beam.mw:8100,eu-node03.mainnet.beam.mw:8100,eu-node04.mainnet.beam.mw:8100,us-node01.mainnet.beam.mw:8100,us-node02.mainnet.beam.mw:8100,us-node03.mainnet.beam.mw:8100,us-node04.mainnet.beam.mw:8100,ap-node01.mainnet.beam.mw:8100,ap-node02.mainnet.beam.mw:8100,ap-node03.mainnet.beam.mw:8100,ap-node04.mainnet.beam.mw:8100
stratum_port=3333
stratum_secrets_path=.
key_mine=export_miner_key string
key_owner=export_owner_key string
pass=abcdefghijklmnopqrstuvwxyz1234567890
@rgsnedds

This comment has been minimized.

Copy link

rgsnedds commented Apr 2, 2019

thank you!

@yozx

This comment has been minimized.

Copy link

yozx commented Jan 13, 2020

thx man

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.