Developer Center

Developer Center

  • Getting Started
  • Built-in Features
  • REST API Endpoints
  • Guides
  • Cheat Sheet

›Built-in Features

Getting Started

  • What is Sirius Chain
  • Setting up your workstation
  • Writing your first application

Built-in Features

  • Account
  • Mosaic (SDA)
  • Namespace
  • Transfer Transaction
  • Aggregate Transaction
  • Multisig Account
  • Metadata
  • Account Restriction
  • Cross-Chain Swaps
  • Exchange Market
  • Decentralized Exchange Market
  • Liquidity Provider
  • Storage

Protocol

  • Node
  • Block
  • Cryptography
  • Transaction
  • Validating
  • Consensus Algorithms
  • Receipt
  • Inflation

REST API

  • Overview
  • Tools
  • Serialization
  • Websockets
  • Status Errors

SDKs

  • Overview
  • Architecture
  • Languages
  • Extending Sirius Chain Capabilities
  • SDK Development
  • SDK Documentation

Wallets & Explorers

  • Wallets & Explorers

Cheat Sheet

  • Sirius Chain Cheat Sheet

Guides

  • Overview
  • External Guides
  • Account

    • Creating and opening an account
    • Getting account information
    • Getting the amount of XPX sent to an account
    • Reading transactions from an account

    Account Restriction

    • Preventing spam attacks with account restrictions

    Aggregate Transaction

    • Sending payouts with aggregate-complete transaction
    • Creating an escrow with aggregate bonded transaction
    • Asking for mosaics with aggregate-bonded transaction
    • Signing announced aggregate-bonded transactions

    Block

    • Listening to New Blocks
    • Getting block by height

    Cross Chain Swaps

    • Atomic cross-chain swap between Sirius public and private chains

    Metadata

    • Account Metadata
    • Mosaic Metadata
    • Namespace Metadata
    • Account Metadata (Deprecated since 0.7.0 Sirius Chain release)
    • Mosaic Metadata (Deprecated since 0.7.0 Sirius Chain release)
    • Namespace Metadata (Deprecated since 0.7.0 Sirius Chain release)

    Monitoring

    • Monitor transaction

    Mosaic

    • Creating a mosaic (SDA)
    • Getting the mosaic information
    • Getting the asset identifier behind a namespace with receipts

    Mosaic Levy

    • Modifying Mosaic Supply

    Multisig Account

    • Converting an account to multisig
    • Modifying a multisig account
    • Creating a multi-level multisig-account
    • Sending a multisig transaction

    Namespace

    • Registering a namespace
    • Registering a subnamespace
    • Getting the Namespace information
    • Linking a namespace to a mosaic
    • Linking namespace to account

    Transfer Transaction

    • Transfer transaction
    • Sending an encrypted message

    Storage

    • Data Modification Cancel
    • Data Modification
    • Download Channel
    • Download Payment
    • Drive Closure
    • Finish Download Channel
    • Prepare Bc Drive
    • Replicator Offboarding
    • Replicator Onboarding
    • Storage Payment
    • Verification Payment

Storage

  • Overview
  • Participate
  • External Economy
  • Roles
  • Verification
  • Challenge
  • Rewards
  • Transaction Schemas
  • Built-In Features

    • Drive
    • Replicator
    • Verifier
    • Supercontracts

    Protocols

    • Cross-Block Protocol
    • Fair Streaming

    Storage User Application

    • Overview
    • Getting Started
    • Managing Drives
    • Managing Drive Files
    • Downloading Data

Exchange Market

Overview

A user can create an exchange offer. Also, any user can select a suitable offer and exchange its mosaics for others using Sirius Exchange Market. The market always has the Sirius permanent offer for buying and selling any official mosaic.

Note

It is not possible to exchange services mosaics such as SO, SM and SC.

There is a possibility to exchange any mosaic to XPX and vice versa. For example, you can exchange XPX to MosaicA or MosaicB, but there is no possibility to exchange MosaicA to MosaicB or vice versa. It is possible in two-step exchange: MosaicA to XPX and after XPX to MosaicB.

Exchange

The exchange mechanism involves two types of actors with the following intentions:

  1. The Seller offers to sell M MosaicA for N XPX. The formed price will be equal to M/N.
  2. The Buyer is interested in buying M MosaicA at a price of no more than XPX per MosaicA.

SellOffer

Any user (in this case, the Seller) may have mosaics, so it can offer the price and sell mosaics. After creating the sellOffer, the specified number of mosaics is deducted from the Seller’s account. As long as this offer exists, any Buyer can agree with the offer and buy mosaics. When the sellOffer time expires, unsold mosaics are returned to the Seller’s account.

BuyOffer

The process of buying is similar to the sellOffer process. The only difference is the transaction type buyOffer instead of sellOffer

Note

If any user creates sellOffer, the other interested users cannot buy less than 1 mosaic (SellOffer Example). In another case, when the user creates buyOffer and another interested user transfers more than the cost of 1 mosaics, it gets 1 mosaic anyway (BuyOffer Example).

SellOffer Example
If 1 XPX cost 5 MosaicA and Buyer transfers less than 5 MosaicA, he will get nothing.

BuyOffer Example
If 1 XPX cost 5 MosaicA and Seller transfers more than 5 and less than 10 MosaicA he gets 1 XPX anyway.

Note Any user can create an exchange offer with a max duration of 10 days. But Sirius Chain can create offers with unlimited duration.

Schemas

AddExchangeOfferTransaction

Announces a new exchange offer transaction.

Version: 0x01

Entity type: 0x415D

PropertyTypeDescription
AddOfferarray(OfferWithDuration, count)A new offer that will be announced

ExchangeOfferTransaction

Announces an exchange transaction.

Version: 0x01

Entity type: 0x425D

PropertyTypeDescription
confirmationsarray(MatchedOffer, count)Exchange offer confirmations

RemoveExchangeOfferTransaction

Announces a new remove exchange offer transaction.

Version: 0x01

Entity type: 0x435D

PropertyTypeDescription
removeOffersarray(OfferMosaic, count)Offers that will be removed

OfferWithDuration

PropertyTypeDescription
OfferOfferExtends offer.
Durationuint64The duration of the offer.

MatchedOffer

PropertyTypeDescription
OfferOfferExtends offer.
Owner32 bytesThe owner of the matched offer.

OfferMosaic

NameValueDescription
MosaicIdUnresolvedMosaicIdMosaic id of the offer.
OfferTypeOfferTypeOffer type.

Offer

PropertyTypeDescription
MosaicUnresolvedMosaicMosaic for exchange.
Costuint64Sum of XPX suggested to be paid for mosaic.
TypeOfferTypeOffer type.

Offer types

Enumeration: uint8

NameValue
SellOffer0
BuyOffer1
← Cross-Chain SwapsDecentralized Exchange Market →
  • Exchange
    • SellOffer
    • BuyOffer
  • Schemas
    • AddExchangeOfferTransaction
    • ExchangeOfferTransaction
    • RemoveExchangeOfferTransaction
    • OfferWithDuration
    • MatchedOffer
    • OfferMosaic
    • Offer
    • Offer types
  • Follow our profile
  • Ask development questions
  • Join our Discord channel
  • Explore our Youtube channel
  • Explore Github
Protocol
BlockConsensus AlgorithmsCryptographyInflationNodeReceiptTransactionValidating
Built-in Features
AccountAggregate TransactionCross-Chain SwapsExchange MarketDecentralized Exchange MarketMetadataMosaicMultisig AccountNamespaceTransfer TransactionStorageLiquidity Provider
References
REST APISDKsCheat Sheet
Includes Documentation Forked from NEM
Copyright © 2025 Sirius Chain