Protocol
SB Core

API Servers

Node types, API interfaces, and transaction flow

Node Types

Node TypeRole
Witness nodeProduces blocks, signs blocks, participates in consensus
Full node (API node)Maintains full state, serves API queries, does not produce blocks
Seed nodeMaintains peer connections, assists network discovery

API Interfaces

Nodes expose two data interfaces. The WebSocket API provides real-time streaming of blocks, transactions, and order book updates, and is used for submitting transactions. The HTTP API handles stateless REST queries for account state, order books, asset info, and history.

API Modules

ModuleDescription
database_apiQuery chain state: accounts, assets, orders, global properties
history_apiAccount operation history, fill history, market history
network_broadcast_apiSubmit signed transactions to the network
network_node_apiPeer connection management (admin)
asset_apiAsset holder lists and asset-specific queries
orders_apiGrouped order book queries

Transaction Flow

  1. Client constructs and signs a transaction locally
  2. Signed transaction is submitted to any API node via WebSocket or HTTP
  3. The node validates and broadcasts the transaction to connected peers
  4. A witness includes the transaction in the next block
  5. On block confirmation the state change is finalised and visible to all nodes