Developer Center

Developer Center

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

›Protocol

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

Receipt

Conditional state changes in the background enable complex transactions.

For example, a hash lock concludes as soon as the aggregate bonded transaction is confirmed. When the locked funds are automatically returned to the account, there is no additional transaction recorded. This might appear as a hidden change that increases the account balance. Receipts provide proof for every hidden change.

The collection of receipts are hashed into a merkle tree and linked to a block. The block header stores the root hash, which is different from zero when the block has receipts.

Transaction statement

A transaction statement is a collection of receipts linked with a transaction in a particular block. Statements can include receipts with the following basic types:

  • Balance Transfer: A mosaic transfer was triggered.
  • Balance Change: A mosaic credit or debit was triggered.
  • Artifact Expiry: An artifact (e.g. namespace, mosaic) expired.
  • Inflation Receipt: Native currency mosaics were created due to inflation.

Resolution statement

When a transaction includes an alias, a so called resolution statement reflects the resolved value for that block:

  • Address Resolution: An account alias was used in the block.
  • Mosaic Resolution: A mosaic alias was used in the block.

The alias receipts record the first occurrence of an (unresolved, resolved) alias pair used in a block.

Recorded receipts

Sirius Chain records invisible state changes for the following entities.

IdReceiptTypeDescription
Core
0x2143Validate_FeeBalanceCreditThe recipient, account and amount of fees received for validating a block. It is recorded when a block is validated.
0x5143InflationInflationThe amount of native currency mosaics created. The receipt is recorded when the network has inflation configured, and a new block triggers the creation of currency mosaics.
0xF143Address_Alias_ResolutionAlias ResolutionThe unresolved and resolved alias. It is recorded when a transaction indicates a valid address alias instead of an address.
0xF243Mosaic_Alias_ResolutionAlias ResolutionThe unresolved and resolved alias. It is recorded when a transaction indicates a valid mosaic alias instead of a mosaicId.
0xE143Transaction_GroupAggregateA collection of state changes for a given source. It is recorded when a state change receipt is issued.
Mosaic
0x414DMosaic_ExpiredArtifactExpiryThe mosaicId expiring in this block. It is recorded when a mosaic expires.
0x124DMosaic_LevyBalanceTransferThe sender and recipient of the levied mosaic, the mosaicId and amount. It is recorded when a transaction has a levied mosaic.
0x134DMosaic_Rental_FeeBalanceTransferThe sender and recipient of the mosaicId and amount representing the cost of registering the mosaic. It is recorded when a mosaic is registered.
Namespace
0x414ENamespace_ExpiredArtifactExpiryThe namespaceId expiring in this block. It is recorded when a namespace expires.
0x124ENamespace_Rental_FeeBalanceTransferThe sender and recipient of the mosaicId and amount representing the cost of extending the namespace. It is recorded when a namespace is registered or its duration is extended.
HashLock
0x3148LockHash_CreatedBalanceDebitThe hash lock sender, mosaicId and amount locked. It is recorded when a valid HashLockTransaction is announced.
0x2248LockHash_CompletedBalanceCreditThe hash lock sender, mosaicId and amount locked that is returned. It is recorded when an aggregate bonded transaction linked to the hash completes.
0x2348LockHash_ExpiredBalanceCreditThe account receiving the locked mosaic, the mosaicId and the amount. It is recorded when a hash lock expires.
SecretLock
0x3152LockSecret_CreatedBalanceDebitThe secretlock sender, mosaicId and amount locked. It is recorded when a valid SecretLockTransaction is announced.
0x2252LockSecret_CompletedBalanceCreditThe secretlock sender, mosaicId and amount locked. It is recorded when a secretlock is proved.
0x2352LockSecret_ExpiredBalanceCreditThe account receiving the locked mosaic, the mosaicId and the amount. It is recorded when a secretlock expires.

Schemas

Receipt

Inlines:

  • SizePrefixedEntity
PropertyTypeDescription
versionuint16The receipt version.
typeReceiptTypeThe receipt type.

TransactionStatement

  • version: 0x1
  • type: Transaction_Group

Inlines:

  • Receipt
PropertyTypeDescription
m_sourceReceiptSourceThe receipt source.
receiptsarray(ReceiptHeader, receiptsHeadersSize)The array of receipt headers.

ResolutionStatement

  • version: 0x1
  • type: Address_Alias_Resolution or Mosaic_Alias_Resolution

Inlines:

  • Receipt
PropertyTypeDescription
unresolved25 bytes (binary) or uint64An unresolved address or unresolved mosaicId.
m_entriesarray(ResolutionEntry, resolvedEntriesSize)The array of resolution entries.

ResolutionEntry

PropertyTypeDescription
resolvedValue25 bytes (binary) or uint64A resolved address or resolved mosaicId.
sourceReceiptSourceThe receipt source.

ReceiptSource

PropertyTypeDescription
primaryIduint32The transaction primary source (e.g. index within block).
secondaryIduint32The transaction secondary source (e.g. index within aggregate).

BalanceTransferReceipt

  • version: 0x1
  • basicType: 0x1

Inlines:

  • Receipt
PropertyTypeDescription
sender32 bytes (binary)The public key of the sender.
recipient32 bytes (binary)The public key of the recipient.
mosaicIduint64The mosaic id.
amountuint64The amount of mosaics.

BalanceChangeReceipt

  • version: 0x1
  • basicType: (0x2) credit or (0x3) debit

Inlines:

  • Receipt
PropertyTypeDescription
account32 bytes (binary)The target account public key.
mosaicIduint64The mosaic id.
amountuint64The amount of the mosaic.

ArtifactExpiryReceipt

  • version: 0x1
  • basicType: 0x4

Inlines:

  • Receipt
PropertyTypeDescription
artifactIduint64The id of the artifact (eg. namespace, mosaic).

InflationReceipt

  • version: 0x1
  • basicType: 0x5

Inlines:

  • Receipt
PropertyTypeDescription
mosaicIduint64Identifier of the mosaic that has been created.
amountuint64Number of mosaics created.
← Consensus AlgorithmsInflation →
  • Transaction statement
  • Resolution statement
  • Recorded receipts
  • Schemas
    • Receipt
    • TransactionStatement
    • ResolutionStatement
    • ResolutionEntry
    • ReceiptSource
    • BalanceTransferReceipt
    • BalanceChangeReceipt
    • ArtifactExpiryReceipt
    • InflationReceipt
  • 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