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
  • Transfer Fee Calculation
  • Smart Contract Fee Calculation
  • Fees Table
  1. SWT PROTOCOL

Fees

When a transaction is made on the SWT platform, a fee is payable.

The types of fees that are payable include:

Type

Description

Max Fee

The maximum fee a user is willing to pay for the transaction

Counted Fee

A fee which is based on the transaction type and other special conditions

Execute Fee

A fee charged for smart contract execution

Transfer Fee Calculation

The fee to transfer native SWT currency from one wallet address to another is based on fees table.

Smart Contract Fee Calculation

When smart contracts are executed and distributed over the SWT blockchain, a fee is payable based on the size of the recorded data.

There are two types of smart contract transactions:

  • An "initiator action" transaction; "deploy" transaction, "__execute" transaction, and "payable" transaction_;_

  • A "new state" transaction where a change has been made to the "state" of a smart contract_._

Any action performed on a smart contract changes its "state", except the "get" methods, which only reads information and does not write anything to the blockchain. In all other cases, it is necessary to create a transaction request to execute a smart contract method.

When creating a transaction request, funds are reserved for this method of execution. Transferred funds are also reserved when creating a "payable" transaction and "emitted" transaction.

Also, in order to compile and execute a smart contract, a certain amount of computing power is also required for which the “execute fee” must also be paid. The following fees are calculated based on the execution time followed by the currency rate:

Fees Table

Size
Deploy Transaction
Other Transaction Types

0-1.5 KB

0.008746170242 SWT

0.0087451 SWT

1.5-20 KB

0.03546746927 SWT

0.0127451 SWT

20-50 KB

1.052767832 SWT

0.0158277242 SWT

50-100 KB

14.30859834 SWT

0.03498468097 SWT

100-256 KB

38.89480285 SWT

0.1589541694 SWT

256-512 KB

105.7270358 SWT

1.936458209 SWT

512-768 KB

287.3958802 SWT

10.51884417 SWT

768-1024 KB

781.2229988 SWT

103.8255221 SWT

1-5 MB

2123.584282 SWT

259.834061 SWT

5-15 MB

5772.500564 SWT

651.3469549 SWT

15-50 MB

15691.28339 SWT

2309.930666 SWT

50-100 MB

42653.3305 SWT

5165.460461 SWT

PreviousTransactionsNextSmart Contracts

Last updated 1 year ago