waves_logo Docs
  • Why Waves
    Why Waves
  • Waves Basics
    Waves Basics
  • Account
    • Creating Account
      Creating Account
    • Address
      Address
    • Account Balance
      Account Balance
    • Account Data Storage
      Account Data Storage
    • Alias
      Alias
    • dApp and Smart Account
      dApp and Smart Account
    Account
  • Token (Asset)
    • Non-Fungible Token
      Non-Fungible Token
    • Smart Asset
      Smart Asset
    • Token ID
      Token ID
    • WAVES
      WAVES
    Token (Asset)
  • Transaction
    • Transaction Fee
      • Sponsored Fee
        Sponsored Fee
      Transaction Fee
    • Signature and Proofs
      Signature and Proofs
    • Transaction Types
      • Burn Transaction
        Burn Transaction
      • Create Alias Transaction
        Create Alias Transaction
      • Data Transaction
        Data Transaction
      • Exchange Transaction
        • Order
          Order
        Exchange Transaction
      • Genesis Transaction
        Genesis Transaction
      • Invoke Script Transaction
        Invoke Script Transaction
      • Issue Transaction
        Issue Transaction
      • Lease Cancel Transaction
        Lease Cancel Transaction
      • Lease Transaction
        Lease Transaction
      • Mass Transfer Transaction
        Mass Transfer Transaction
      • Reissue Transaction
        Reissue Transaction
      • Set Asset Script Transaction
        Set Asset Script Transaction
      • Set Script Transaction
        Set Script Transaction
      • Sponsor Fee Transaction
        Sponsor Fee Transaction
      • Transfer Transaction
        Transfer Transaction
      • Update Asset Info Transaction
        Update Asset Info Transaction
      • Ethereum-like Transaction
        Ethereum-like Transaction
      Transaction Types
    • Transaction Validation
      Transaction Validation
    Transaction
  • Mainnet, Testnet, Stagenet
    Mainnet, Testnet, Stagenet
  • Node
    • Leasing
      Leasing
    • Generator’s Income
      Generator’s Income
    • Monetary Policy
      Monetary Policy
    Node
  • Block
    • Block Generation
      • Base Target
        Base Target
      • Generation Signature
        Generation Signature
      Block Generation
    • Block Height
      Block Height
    • Block Signature
      Block Signature
    • Block Timestamp
      Block Timestamp
    • Transactions Root Hash
      Transactions Root Hash
    • Genesis Block
      Genesis Block
    Block
  • Oracle
    Oracle
  • Protocols & Data formats
    • Cryptographic Practical Details
      Cryptographic Practical Details
    • Waves-NG Solution
      Waves-NG Solution
    • Waves-NG Protocol
      Waves-NG Protocol
    • Fair Proof of Stake
      Fair Proof of Stake
    • Blockchain Data Types
      Blockchain Data Types
    • Binary Format
      • Address Binary Format
        Address Binary Format
      • Alias Binary Format
        Alias Binary Format
      • Block Binary Format
        Block Binary Format
      • Network Message Binary Format
        • Block Message Binary Format
          Block Message Binary Format
        • Checkpoint Message Binary Format
          Checkpoint Message Binary Format
        • Get Block Message Binary Format
          Get Block Message Binary Format
        • Get Peers Message Binary Format
          Get Peers Message Binary Format
        • Get Signatures Message Binary Format
          Get Signatures Message Binary Format
        • Handshake Message Binary Format
          Handshake Message Binary Format
        • Peers Message Binary Format
          Peers Message Binary Format
        • Score Message Binary Format
          Score Message Binary Format
        • Signatures Message Binary Format
          Signatures Message Binary Format
        • Transaction Message Message Binary Format
          Transaction Message Message Binary Format
        Network Message Binary Format
      • Order Binary Format
        Order Binary Format
      • Transaction Binary Format
        • Burn Transaction Binary Format
          Burn Transaction Binary Format
        • Create Alias Transaction Binary Format
          Create Alias Transaction Binary Format
        • Data Transaction Binary Format
          Data Transaction Binary Format
        • Exchange Transaction Binary Format
          Exchange Transaction Binary Format
        • Genesis Transaction Binary Format
          Genesis Transaction Binary Format
        • Invoke Script Transaction Binary Format
          Invoke Script Transaction Binary Format
        • Issue Transaction Binary Format
          Issue Transaction Binary Format
        • Lease Cancel Transaction Binary Format
          Lease Cancel Transaction Binary Format
        • Lease Transaction Binary Format
          Lease Transaction Binary Format
        • Mass Transfer Transaction Binary Format
          Mass Transfer Transaction Binary Format
        • Reissue Transaction Binary Format
          Reissue Transaction Binary Format
        • Set Asset Script Transaction Binary Format
          Set Asset Script Transaction Binary Format
        • Set Script Transaction Binary Format
          Set Script Transaction Binary Format
        • Sponsor Fee Transaction Binary Format
          Sponsor Fee Transaction Binary Format
        • Transfer Transaction Binary Format
          Transfer Transaction Binary Format
        • Update Asset Info Transaction Binary Format
          Update Asset Info Transaction Binary Format
        • Ethereum-like Transaction Binary Format
          Ethereum-like Transaction Binary Format
        Transaction Binary Format
      • Transaction Proof Binary Format
        Transaction Proof Binary Format
      Binary Format
    • Validation Rules
      Validation Rules
    Protocols & Data formats
  • Glossary
    Glossary
      • English
      • Русский
      On this page
        • Node architecture
        • Validating Node
        • Generating Node
        • Generator's Income
        • Apps
        • Node Scala and Node Go
      waves_logo Docs

          # Waves Node

          A node is a host in the blockchain network. The node stores the copy of all the blockchain data, validates transactions and blocks, and synchronizes the data with peer nodes. Hundreds of independent nodes ensure the decentralization of the network: no single entity has sole control over the network or the ability to manipulate data.

          Waves is a public blockchain: anyone can launch their own node and join the network. You can install and run the Waves application on an ordinary computer. Installation options are given in the Install Waves Node article.

          # Node architecture

          Waves node main components are:

          • Network layer provides interaction with peer nodes.
          • Validator checks transactions and blocks against blockchain rules.
          • Database stores validated and confirmed transactions and blocks, as well as the current state of the blockchain: balances of accounts, entries of account data storages, assigned scripts etc.
          • UTX pool contains unconfirmed transactions until they are included into a block.
          • Block generator creates blocks that are added to the blockchain.
          • Node REST API is an interface for receiving blockchain data, sending transactions to the blockchain, etc. See the Node REST API article for details.

          # Validating Node

          Any Waves node, regardless of its WAVES balance, is a validating node. It checks transactions and blocks received from other nodes against the blockchain rules. Invalid transactions and blocks are discarded.

          Any node can also propose new transactions, which will propagate in the network until they are included into a block or discarded.

          # Generating Node

          A node with a generating balance of at least 1000 WAVES can participate in block generation and receive rewards. According to the Leased Proof of Stake (LPoS) algorithm, a node's chance to generate a block is proportional to its generating balance.

          The generating balance of an account is its lowest balance in WAVES considering leasing for the last 1000 blocks (more about calculating the generating balance). With leasing mechanic, you can attract funds from other users to increase the generating balance of your node, frequency of block generation and thus the resulting income. More about leasing

          The list of generating nodes in the Waves network, their balances, and block statistics are available at dev.pywaves.org .

          If you'd like to run a generating node and get rewarded, see instructions.

          Please keep in mind that a node with a minimum balance of 1000 WAVES generates ~1 block per month only. Without having a significant amount of WAVES, it is preferable to participate in block generation not by running your own node, but by leasing your WAVES to higher-performance generators.

          # Generator's Income

          By adding a new block to the blockchain, block generator receives:

          • Block reward due to additional issue of WAVES token. The current reward size is 6 WAVES, and it can be increased or decreased by a vote of generating nodes. See the Community-Driven Monetary Policy article for details.
          • Transaction fees. The node receives 40% of the total fees for transactions in the current block and 60% of the total fees for transactions in the previous block, according to Waves-NG protocol.

          The calculation of the rewards is described in more detail in the Generator's Income article.

          # Apps

          To develop and run a decentralized application, you do not have to run your own node. You can receive blockchain data and send transactions signed by users via API of pool of public nodes.

          However, running your own node provides you with additional options:

          • interact with the node without network latency,
          • make more frequent requests than allowed by the limitations of the public pool,
          • customize the node configuration with respect to your app,
          • install node extensions, for example, Blockchain Updates to track changes,
          • create your own node extensions.

          # Node Scala and Node Go

          The Waves node has two implementations:

          • Node Scala is the main version providing maximum functionality.
          • Node Go is the alternative version focused on high operation speed and interaction with gPRC services. Node Go is currently under development and not recommended to use in mission-critical projects.

          Running two different applications in parallel makes the Waves network more sustainable to protocol implementation errors. Differences between the two versions are highlighted in the Node Go article.

          Mainnet, Testnet, Stagenet
          Leasing
          Mainnet, Testnet, Stagenet
          Leasing