CONFIG FILES REQUIREMENTS (CLI)

& guide how-to if your CLI wallet fails to send on automated scripts (USER ERROR)

To install the Wallet API alongside the Beam wallet, collect the files onto a server of ubuntu 18 or above from https://github.com/BeamMW/beam/releases/tag/beam-7.0.13064

Just get everything that is linux-bound

make the configs for each part of the Beam architecture.

BEAM_WALLET.CFG

				
					pass=Y0urp@55w0rd
				
			
				
					node_addr=127.0.0.1:10127
				
			

For explorer node you seen to add

BEAM_WALLET.CFG

				
					peer=127.0.0.1:10127
				
			
				
					api_port=666
				
			
				
					key_owner=Y0V4ROWNERKEYFROMYOURWALLET
				
			
				
					pass=Y0urp@55w0rd
				
			
				
					listen
				
			

For wallet api you seen to add

WALLET_API.CFG

				
					pass=Y0urp@55w0rd
				
			
				
					node_addr=pool.raskul.com:10127
				
			
				
					enable_lelantus=1
				
			
				
					port=11111
				
			
				
					use_http=1
				
			

If your CLI wallet fails to send on automated scripts (USER ERROR)

make sure your ports are open

				
					sudo ufw allow 666
				
			
				
					sudo ufw allow 11111
				
			

Make sure you are running your processes in PM2 – short list of commands to install it and make sure everything is running in PM2

				
					apt install npm
				
			

pm2 is then installed via npm

				
					npm install pm2 -g
				
			
				
					pm2 start beam-node
				
			

start your first process on PM2 – this will in the first instance likely and should be your node. It will take few hours to synchronise.

				
					pm2 list
				
			
				
					pm2 start beam-wallet
				
			

troubleshooting
restart pm2 # process in pm2 list

				
					pm2 restart 2
				
			
				
					pm2 start explorer-node
				
			

this would not stop as part of the user error needed for this guide

				
					pm2 start wallet-api
				
			

troubleshooting : pm2 restart #THIS for troubleshooting a stuck outgoing transaction.

				
					pm2 restart 5
				
			

some pm2 commands

				
					pm2 save
				
			
				
					pm2 startup
				
			

2 commands to ensure your node restarts upon loss of power and/or. reboot

				
					pm2 reset 6
				
			
				
					pm2 stop 7
				
			
				
					pm2 start 1