LTO Network mining in 5 steps

So you decided you want to be part of the LTO Network, awesome!

A great way to be part of the community is by actively participating as a node in the network. This blog post explains in just 5 steps how to get your node up and running using AWS (Amazon Web Services) Elastic Bean Stalk Applications. In my personal experience running an Elastic Bean Stalk LTO Network Node will set you back around 60 dollar cents per day (based on my personal figures from Jan 16 — Jan 19 2019).

Step 1: Wallets

Don’t have an LTO Network wallet yet? Create 1 at https://wallet.lto.network. You need mainnet tokens to be able to stake (be part of the network with your tokens)

  • Have Investor Seed (Waves) tokens? Transfer them using the Waves Token Swap option in your freshly created wallet.
“Waves Token Swap” option in LTO Network Wallet
  • You have ERC20 tokens (Crowd sale)? Transfer them to mainnet tokens using the bridge function in the wallet interface (fee: 100 LTO).
Bi-directional Token Bridge

The wallet you just created is (will be) your personal wallet. We’ll want another wallet which we’ll use just for staking. This new wallet will also receive the earnings. Go ahead and create another wallet. We’ll use the lease function of the LTO Network to lease your tokens from your personal wallet to the 2nd wallet.

As always make sure to write down the seeds of your wallet(s). You can use these to recover your wallet later if needed. Also you’ll need the seed later on in this walkthrough when configuring your node in Step 4.

Step 2: Leasing

Next step is creating your lease. You will want to lease your tokens from your personal wallet (Wallet #1) to your 2nd wallet (the wallet we’ll use for the node).

Screenshot of the Leasing page in the LTO Network wallet interface

As a first step click the “Start lease” button:

  • Specify the recipient: <the address of your 2nd wallet>
  • Specify the amount (max = balance minus fee): <enter a number>

Click Start lease and confirm to activate.

A successfully activated lease from Wallet #1 — Personal wallet

You can check out your 2nd wallet and see the lease was successful.

A successful lease from Wallet #2 — Node

You’ll need at least 1.000 LTO in your wallet to be able to run a node. You probably want to make sure you have 10.000+ LTO.

Step 3: Preparing the setup of the node

Do you have an AWS account? If not set one up through https://console.aws.amazon.com/.

Next try to make yourself at least basically familiar with this Github page: https://github.com/legalthings/lto/tree/master/public-node. It describes the procedure to setup the AWS node in less detail than this document but it shows you the origin of what we’re doing.

In step 4 we will configure the actual Elastic Bean in AWS. In that step I assume you were successful in the creation of your AWS account.

The last step in preparation is the download of the: “Dockerrun.aws.json” file from the Github repository. Download this file (https://github.com/legalthings/lto/blob/master/public-node/Dockerrun.aws.json) to your system and zip it using your favorite archive tool.

Step 4: Setting up the AWS Elastic Bean Stalk application:

Open the AWS interface: https://console.aws.amazon.com/elasticbeanstalk/home?region=us-east-1#/applications. If you want to change the AWS region where you want to host your application this is the time.

Let’s create our application by clicking “Create New Application”:

  • Specify an Application name and a Description. Just choose yourself.
Create New Application wizard
We have created our application and are presented the main screen.

Next step is to create the environment. This will be the actual node:

  • Select the “Web server environment” tier and click “Select”.

In the next screen we need to specify a few things:

  • Choose a name for the environment, you choose yourself.
  • You can choose a name for the domain. This will be the first part of the url where you can reach your node if you choose the enable the API later on. If you don’t fill in anything here the system will auto-generate.
  • Fill in a description if you want.
  • Make sure to specify “Docker” as the Preconfigured platform.
  • Finally select the “Upload your code” option under “Application code” and click the Upload button.
  • Clicking the Upload button gives you the opportunity to “Choose File” the zip file (Dockerrun.aws.json.zip) you created earlier.
Upload your code screen — Click upload after selecting the file.

Clicking the Upload button brings us back to web environment creation screen. We need to configure some additional things so let’s click the “Configure more options” button.

We need to change some defaults to get the node to run.

We want to change the following things:

  • Instances, click modify: EC2 instance type, change to: t2.small
  • Software, click modify:
The Modify software screen.

On the software screen you can choose to activate the Log streaming. Personally I find this very useful. To activate check the Log streaming box like shown in the screenshot above.

2nd is to setup the Environment properties. Depending on your wish to activate the API you configure just the first 2 variables or configure all of them.

Both LTO_WALLET_PASSWORD and LTO_API_KEY are fields for which you choose the value. The LTO_WALLET_SEED is your official wallets seed. In this example we use the seed (the mnemonic phrase / the list of words) of the 2nd wallet we created.

Finished configured the environment properties you can click “Save” and then “Create environment”.

AWS will now create the Elastic Bean Stalk application based on the Dockerfile (the file you uploaded) and parameters you specified. Please give this process a few minutes to complete.

A successfully running LTO Network node

If you have enabled the API (assuming you configured all 4 environment properties) you can connect to your node through your favorite webbrowser.

The API interface for the LTO Network node.

Step 5: Wait for a 1.000 blocks

You can find the LTO Network Explorer at https://explorer.lto.network. It shows you the blocks generated, by who, when, how big they are and how many transactions are in the block.

After launching your node check the website to see the number of the last block. Wait till another 1.000 blocks are generated and expect your node to be part of the LTO Network.

Depending on your stake (the number of LTO tokens you have in the “2nd wallet”) it will take more or less time for you to start earning LTO.

Be patient and be happy. Welcome to the amazing LTO Network community.