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

Aggregate Transaction

Aggregated Transactions merge multiple transactions into one, allowing trustless swaps, and other advanced logic. Sirius Chain does this by generating a one-time disposable smart contract.

Trustless swap

Example of an aggregate transaction between two participants

When all involved accounts have cosigned the aggregate transaction, all the inner transactions are executed at the same time.

Aggregate complete

An aggregate transaction is complete when all the required participants have signed it.

The cosigners can sign the transaction without using the blockchain. Once it has all the required signatures, one of them can announce it to the network. If the inner transaction setup is valid, and there is no validation error, the transactions will get executed at the same time.

Aggregate complete transactions enable the adding of more transactions per block by gathering multiple inner transactions.

Aggregate bonded

An aggregate transaction is bonded when it requires signatures from other participants.

Note

Before announcing an aggregate bonded transaction, an account must announce and confirm a hash lock transaction locking 10 xpx.

Once an aggregate bonded is announced, it reaches partial state and notifies its status through WebSockets or HTTP API calls.

Every time a cosignatory signs the transaction and announces an aggregate bonded cosignature, the network checks if all the required cosigners have signed. When all signatures are acquired, the transaction changes to unconfirmed state until the network includes it in a block.

Aggregate bonded transaction cycle

Aggregate bonded transaction cycle

Examples

Sending payouts

Dan announces an aggregate transaction that merges two transfer transactions.

As Dan is the only required signatory, the transaction is considered complete after he signed. After announcing it to the network, Alice and Bob will receive the mosaics at the same time.

Aggregate sending payouts

Sending payouts with aggregate complete transactions

Multi-Asset Escrowed Transactions

In this example, Alice is buying tickets with currency.euro mosaic. When the ticket distributor cosigns the aggregate transaction, the swap will happen atomically.

Multi-Asset Escrowed Transactions

Multi-Asset Escrowed Transaction

Paying for others fees

Alice sends 10 currency.euro to Bob using an app to make payments. But Alice doesn’t own xpx to pay the transaction fee.

By creating an aggregate bonded transaction, Alice can convert EUR to xpx to pay the fee. Now, Alice and Bob can use Sirius Chain without ever having to buy or hold xpx.

Since the app creator can put their own branding on the open source payment app, Alice and Bob may not even know they are using blockchain.

Paying for others fees

Paying for other fees

Guides

Note:

We recommend checking out setting up your workstation before going through the guides.

  • Sending payouts with aggregate complete transaction

    How to send transactions to different accounts atomically using an aggregate complete transaction.

  • Creating an escrow with aggregate bonded transaction

    How to create an escrow with aggregate bonded transactions.

  • Asking for mosaics with aggregate bonded transaction

    How to ask an account to send you funds using an aggregate bonded transaction.

  • Signing announced aggregate bonded transactions

    How to sign announced aggregate bonded transaction that all required co-signers have not signed it yet.

  • Sending a multisig transaction

    Send a transaction involving a multisig and learn how an aggregate bonded transaction works.

Schemas

Note:

Configuration parameters are editable. Public network configuration may differ.

AggregateTransaction

Version: 0x02

Entity type: 0x4141 (complete), 0x4241 (bonded)

Inlines:

  • Transaction
PropertyTypeDescription
payloadSizeuint8The transaction payload size in bytes. In other words, the total number of bytes was occupied by all inner transactions.
transactionsarray(byte, payloadSize)The array of transactions initiated by different accounts. An aggregate transaction can contain up to 1000 inner transactions involving up to 15 different cosignatories. Other aggregate transactions are not allowed as inner transactions.
cosignaturesarray(byte, size - payloadSize)An array of transaction cosignatures.

DetachedCosignature

Cosignature transactions are used to sign announced aggregate bonded transactions with missing cosignatures.

Inlines:

  • Cosignature
PropertyTypeDescription
parentHash32 bytes (binary)The aggregate bonded transaction hash to cosign.

Cosignature

  • Transaction or EmbeddedTransaction
PropertyTypeDescription
signer32 bytes (binary)The cosigner public key.
signature64 bytes (binary)The transaction signature.

HashLockTransaction

Alias: LockFundsTransaction

Announce a hash lock transaction before sending a signed aggregate bonded transaction. This mechanism is required to prevent network spamming.

Once the related aggregate bonded transaction is confirmed, locked funds become available again in the account that signed the initial hash lock transaction.

If the aggregate bonded transaction duration is reached without being signed by all cosignatories, the locked amount is collected by the block Validator at the height where the lock expires.

Version: 0x01

Entity type: 0x4148

Inlines:

  • Transaction or EmbeddedTransaction
PropertyTypeDescription
mosaicMosaicLocked mosaic, must be at least 10 xpx.
durationuint64The lock duration.
hash32 bytes (binary)The aggregate bonded transaction hash that has to be confirmed before unlocking the mosaics.
← Transfer TransactionMultisig Account →
  • Aggregate complete
  • Aggregate bonded
  • Examples
    • Sending payouts
    • Multi-Asset Escrowed Transactions
    • Paying for others fees
  • Guides
  • Schemas
    • AggregateTransaction
    • DetachedCosignature
    • Cosignature
    • HashLockTransaction
  • 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