Developers
  • SWT PROTOCOL
    • Introduction
    • Accounts
    • Transactions
    • Fees
    • Smart Contracts
  • GETTING STARTED
    • Network Node
      • Introduction
      • STEP 1:RENTING A LINUX VPS
      • STEP 2:INSTALLATION OF PUTTY
      • STEP 3:INSTALLATION OF FILEZILLA
      • STEP 4:VPS CONNECTION AND LINUX CONFIGURATION WITH PUTTY (SSH)
      • STEP 5:HOW TO SECURE YOUR VPS
      • STEP 6:USING TMUX THROUGH PUTTY
      • STEP 7:UPLOAD OF THE SWT SOFTWARE WITH FILEZILLA
      • STEP 8:EXTRACT THE SWT SOFTWARE FOLDER
      • STEP 9:RUNNING THE SWT NODE THROUGH TMUX
      • STEP 10:RUNNING THE MONITORING TOOLS
  • API REFERENCE
    • Apache Thrift API
      • Transactions
      • Blocks
      • Smart contract
      • Tokens
      • Wallets
      • Sync info
      • Data structures
    • REST API
      • GetBlocks()
      • GetNodeInfo()
      • GetBalance()
      • GetWalletInfo()
      • GetTokenBalance()
      • GetTransactionsByWallet()
      • GetTransactionInfo()
      • GetEstimatedFee()
      • GetContractByAddress()
      • GetContractFromTransaction()
      • GetContractMethods()
      • ContractValidation()
      • ContractCall()
      • TransactionPack()
      • TransactionExec()
  • SMART CONTRACTS
    • Creating "Hello-world" Smart Contract
    • Smart Contract Methods
    • Smart Contract Standarts
      • Token Smart Contract
      • Escrow Smart Contract
      • Stable coin Token
  • HOW TO REST API
    • Introduction
    • Retrieve a balance from the blockchain
    • Request a specific transaction from the blockchain
    • Sending Transactions to the SWT Blockchain
    • Validating and deploying a Smart Contract with REST API
Powered by GitBook
On this page
  • MAIN PURPOSE OF THIS TUTORIAL
  • WHAT YOU WILL BE ABLE TO DO AT THE END OF THE TUTORIAL
  • WHAT IS A SWT NODE?
  • WHAT ARE ITS FEATURES?
  • WHAT ARE THE BENEFITS OF RUNNING A SWT NODE?
  • REQUIRED ELEMENTS
  • FINAL RESULT
  1. GETTING STARTED
  2. Network Node

Introduction

This guide aims to help SWT community members who wants to run a node on a Linux VPS, and to guide them in their first steps.

MAIN PURPOSE OF THIS TUTORIAL

The purpose of this tutorial is to allow Windows users to run a SWT node with ease, and to teach to Windows and Mac OS users with no Linux knowledge how to install, configure and manage a SWT Node installed on a Linux VPS (without Graphical interface), from a Windows or Mac OS operating system. You don’t need to have an IT background to run this tutorial. We will always choose the simple and easiest way to do things. And most of the Linux commands that you will find here can be copy-pasted from this document to the Linux command line.

WHAT YOU WILL BE ABLE TO DO AT THE END OF THE TUTORIAL

  • Configuring a PC in order to run a node, or a rented Linux VPS under Ubuntu 18.04 (without graphical interface)

  • Running a SWT node on your VPS

  • Managing your VPS through the Tmux software and even closed, it will continue to run 24/7

WHAT IS A SWT NODE?

A node is a client-side application that is installed on the user equipment. The node processes and stores transactions, executes and confirms smart contract rules requests processing from third-party systems and provides data when requested.

WHAT ARE ITS FEATURES?

Implemented in C++, It's a complete node and digital wallet that provides the following set of functions:

  • Participation in the consensus algorithm

  • Storage of public registry blockchain with all transactions

  • Performing value transfer transactions: SWT and tokens released on the SWT platform

  • Allowing account balance check

  • Creating an account/digital wallet

  • Developing, compilation and deploying of a smart contract

  • Issuance of internal tokens that work with the platform/SWT protocol

  • Smart contract testing

  • Execution of smart contract functions/methods (like ‘execute’, ‘save’, ‘approve’, ‘view’, ‘check’, etc.)

WHAT ARE THE BENEFITS OF RUNNING A SWT NODE?

The first benefit is quite symbolic, it helps the SWT blockchain network for consensus decisions, transactions processing and storage of datas on SWT blockchain.

The second benefit for a user who runs a SWT node is that he get rewards for each transaction validation he participates in. Also, each owner of a mining node receives an additional reward daily. Once a day, 25,000 SWT is distributed among all nodes, each node receives a reward in accordance with its share of coins in the node’s account relative to the total number of coins in the pool

REQUIRED ELEMENTS

  • A Personal Computer under Windows or a Mac

  • Latest version of SWT Mainnet software, with a stake of more than 1.000.000 SWT in node wallet

  • A rented Linux VPS (tutorial made on Ubuntu 18.04)

  • PuTTY and FileZilla softwares (freewares and available for both Windows and Mac)

  • Few Linux monitoring tools installed on the VPS

FINAL RESULT

Once you will have set your SWT node (on your Linux VPS), your node will work and you will be a part of SWT blockchain.

The following screenshot shows the final result of this tutorial with a Linux VPS. It's a SSH session on the Linux VPS that you will rent and where the SWT Node software will be running.

You can quit it at anytime you want by clicking on the cross, like on any programs you are familiar with under Windows or Mac OS. The SWT Node and other softwares that you have started in this SSH session will continue to run until you connect again on your VPS, or until you stop them manually or reboot your VPS.

PreviousNetwork NodeNextSTEP 1:RENTING A LINUX VPS

Last updated 1 year ago