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
  • Description
  • Useful Links
  1. SWT PROTOCOL

Smart Contracts

PreviousFeesNextNetwork Node

Last updated 1 year ago

Description

A smart contract defines a computer algorithm designed for the conclusion and maintenance of commercial contracts within blockchain technology.

Within the frames of the SWT platform, a smart contract is a special transaction containing Java byte code that implements the logic of the conclusion and maintenance of a contract.

This byte code contains a set of methods and variables that can change the internal values of a smart contract or its state as a result of its execution. The figure below displays the transaction structure of a smart contract.

  • Sender address;

  • Smart contract address;

  • Smart contract length;

  • Smart contract byte code;

  • Sender signature.

Smart contract execution refers to a deployment of methods entailing a change of smart contract state. Trusted Nodes of the round are responsible for smart contract execution. A smart contract is executed on all Trusted Nodes at the same time, after which the nodes make a group-decision whether to include new smart contract states in the blockchain.

Useful Links

Creating "Hello-world" Smart Contract
Smart Contract Methods
Smart Contract Standarts