(Updated on 20-11-2018)
The Supplier is a Sonm user who owns computational resources and provides them to Sonm for rent. Suppliers can earn tokens by selling their computing power peer-to-peer to customers and executing their tasks.
Getting started as a Sonm supplier takes several steps, as described below. It includes the installation, settings, and monitoring the process.
You'll need to consider the following before starting the installation:
All suppliers should have an Ethereum address as their unique identifier. This address is called the “Master address” and is used:
Important!
Do not use your main Ethereum address for master purposes! A better option is to generate a new one in the Sonm Market.
The best option is to keep your Master address safe and use an Admin address instead. Admin keys do not receive payment for rented resources and are used only for worker node management and authentication purposes within the Sonm network.
To create your Master address:
IMPORTANT
DON'T FORGET to make a BACK-UP of your KEYSTORE or WHOLE WALLET. You cannot get access to your funds if you loose the keystore.
To export wallet:
- Click the "Export wallet" button on the "Accounts" page.
- Choose the local folder and click "Save".
Supplier should have the following components to use Sonm:
Notice. After installation, Sonm Optimus starts selling your computing resources automatically. You will receive income in SNM tokens on your Master account.
There are three ways to install Sonm components for supplier. Choose the appropriate one for you. We recommend you use Sonm OS.
Sonm OS is an operating system designed specifically to help suppliers of computing resources connect to the decentralized Sonm platform and start working as quickly and easily as possible. Sonm OS is based on Ubuntu 18.04 Server Edition and includes all Sonm components and environments for suppliers. To install Sonm OS, follow the guide steps.
Follow the steps below:
Open cmd and execute these commands:
sudo apt-get install curl
;sudo bash -c "$(curl -s https://raw.githubusercontent.com/sonm-io/autodeploy/master/sonm-auto-deploy-supplier.sh)" -s YOUR_MASTER_ADDRESS
sonmcli token balance
.Sonm Worker launches several benchmarks upon its initial launch. You can check them and any tasks running on your machine using the command: sudo docker ps
.
Note: Sonm Worker may not respond during the benchmarking process, so you need to wait until its completion. If you have several GPUs on board, the benchmarking process may take about an hour.
sonmcli master list <MASTER_ADDR>
.sonmcli master list <MASTER_ADDR>
againsonmcli worker status
.sonmcli worker devices
.You may see other CLI commands in Sonm CLI Guide.
Video version of Sonm platform installation using auto-installation script:
You may also perform configuration manually:
sonmcli login
to generate new Ethereum address (tthis will create a new UTC/JSON keystore with a given passphrase that will be your 'Admin address');sudo service sonm-worker start
;sudo nano /etc/sonm/node-default.yaml
: sudo service sonm-node start
.sudo nano /etc/sonm/optimus-default.yaml
([email protected]:15010);sudo service sonm-optimus start
.After installation, Sonm Optimus starts selling your computing resources automatically. You will receive income in SNM tokens on your Master account.
View your active deals using:
View your current balance in SNM using:
View your current income using:
View your resources sold using:
Maintenance mode allows you to gracefully shut down your worker for maintenance without the risk of being blacklisted by customers or Connor bots. It will stop your tasks, remove your sell orders from Market, and close all deals automatically. Maintenance mode can be engaged via the maintenance scheduler in the Sonm CLI.
Read this article to use the maintenance mode.
The withdraw operation is needed to transfer your earned tokens from the Sonm blockchain to the Ethereum blockchain.
In the onm CLI use the command: sonmcli token withdraw <amount>
.
In the Sonm Market, go to “Market” -> “Withdraw” and follow the guide steps.
Please NOTE
We use special Gate smart contracts and Gatekeeper masternodes to validate transactions for depositing SNM tokens to SONM blockchain and withdrawing them to the main Ethereum network. The transactions are not instantaneous – there are delays:
- validation of transactions (including transactions to the blockchain) – this depends on the current workload of the main Ethereum network and your transaction settings("gas limit" and "gas price");
- quarantine period for the gate – 15 minutes.
Taking this into account, the normal time it takes to deposit funds in the respective other blockchain is <the time it takes to mine your transaction + 15 minutes>.
If you get stuck, help is always available. We provide you with 24/7 technical support.
If you experience any errors or difficulties with our product, you can get support via:
Please be ready to provide all the required information to help us solve your issue. Check if your Sonm platform components working correctly using our self-check guide.
Also, please write up a step-by-step description of the actions that led to the error and provide us with the command outputs.