Theta Edge Node

Theta Network is the leading blockchain decentralized cloud for AI, media and entertainment. And to become a part of distributed computing is not so hard.

There are UI clients to MacOS and Windows which can run locally, but there is one more way to launch it on Linux via Docker. The process is described here.

The command to launch node looks like this. Very important thing is replacing <YOUR_PASSWORD> with secured password because you’ll need it to get access to your wallet.

$ sudo docker run -d -e EDGELAUNCHER_CONFIG_PATH=/edgelauncher/data/mainnet \
                     -e PASSWORD=<YOUR_PASSWORD> \
                     -v ~/.edgelauncher:/edgelauncher/data/mainnet \
                     -p 127.0.0.1:15888:15888 \
                     -p 127.0.0.1:17888:17888 \
                     -p 127.0.0.1:17935:17935 \
                     --name edgelauncher \
                     -it thetalabsorg/edgelauncher_mainnet:latest
  1. Wallet keysore file can be found inside the container at ~/.edgelauncher/data/mainnet/edgecore/key/encrypted because volume attaches to current user folder “-v ~/.edgelauncher:/edgelauncher/data/mainnet”
  2. Save the file to your local machine, go to https://wallet.thetatoken.org/unlock/keystore-file, import file and use your password. But at first launch even if you got some encoding jobs the wallet can be empty. The pending balance will be visible at the beginning the of the next month so keep it in mind.

Here is some command that will help to figure out what’s going on and get some statistic.

List of Video Encoding Jobs:

$ curl -X POST -H 'Content-Type: application/json' --data '{"jsonrpc":"2.0","method":"edgeencoder.GetStatus","params":[],"id":1}' http://localhost:17935/rpc

List of Lavita jobs:

$ curl -X POST -H 'Content-Type: application/json' http://localhost:15888/rpc -d '{"jsonrpc": "2.0", "method": "edgelauncher.GetPastJobs", "params": [{"type": "lavita", "page": 0, "num": 10}], "id": 1}'

List of FedML:

$ curl -X POST -H 'Content-Type: application/json' http://localhost:15888/rpc -d '{"jsonrpc": "2.0", "method": "edgelauncher.GetPastJobs", "params": [{"type": "FEDML", "page": 0, "num": 10}], "id": 1}'

Node summary:

$ curl -X POST -H 'Content-Type: application/json' --data '{"jsonrpc":"2.0","method":"edgecore.GetEdgeNodeSummary","params":[],"id":1}' http://localhost:17888/rpc

I need to emphasize that this article is NOT a financial advice and you do it on your own risk.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *