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

Account Restriction

Accounts may configure a set of smart rules to block announcing or receiving transactions given a series of restrictions.

The account owners - plural in case of multisig accounts - can edit the account restrictions at a later time announcing the specific account restriction transaction.

Restriction types

RestrictionIncoming TransactionsOutgoing Transactions
AccountAddressRestriction✔️❌
AccountMosaicRestriction✔️❌
AccountOperationRestriction❌✔️

Address restriction

An account can decide to only receive transactions from a list of allowed addresses. Alternatively, the account can define a list of blocked addresses.

Restricting incoming transactions is useful when the account will only be receiving transactions from known addresses, or when the account wants to block transactions coming from unknown senders.

Accounts restriction

Address restriction diagram

Note

Allow and block restrictions are mutually exclusive. In other words, an account can only configure a block or an allow list per type of restriction.

By default, when there are no restrictions set, all the accounts in the network can announce transactions to the unrestricted account.

Additionally, an account can decide to apply address restrictions to the outgoing transactions, limiting the accounts allowed that are valid recipients.

Mosaic restriction

Similar to address restrictions, an account can configure a restriction to permit incoming transactions only if all the mosaics attached are allowed. On the other hand, the account can refuse to accept transactions containing a mosaic listed as blocked.

Account mosaic restrictions are generally used to prevent accounts being tagged with mosaics not associated to their activity.

Operation restriction

An account can allow/block announcing outgoing transactions with a determined operation type. By doing so, the account increases its security, preventing the announcement by mistake of undesired transactions.

Examples

Blocking spam transactions

A pharmaceutical company is using the public chain to certify the quality of their products.

When the quality verification process concludes, an operator sends a quality seal to the product account.

The final customers can review the product mosaics scanning a QR code. For that reason, the company only wants to show related transactions, avoiding others from spamming their products with non-related information.

Blocking spam transactions

Blocking spam transactions

The company opts to configure their product accounts restrictions, enabling it to only receive transactions containing pharmaceutical.quality.seal mosaics.

Enhancing the account security

Lately, Alice has only been using her main account to cosign aggregate transactions where she is a cosignatory for the multisig account.

As a temporary security measure, Alice opts to disable announcing transfer transactions from her main account. Doing so, Alice double-checks that the funds held in the main account are not going to be transferred by mistake.

Guides

  • Preventing spam attacks with account restrictions

Learn how to add and remove account restrictions.

Schemas

AccountAddressRestrictionModificationTransaction

Configure restrictions to prevent receiving or sending transactions from/to undesired addresses.

Version: 0x01

Entity type: 0x4150

Inlines:

  • Transaction or EmbeddedTransaction
PropertyTypeDescription
restrictionTypeRestrictionTypeType of the account restriction.
modificationsCountuint8Number of modifications in the transaction. A maximum of 255 modifications per transaction is allowed.
modificationsarray(AccountRestrictionModification)Array of account address restriction modifications.

AccountMosaicRestrictionModificationTransaction

Configure restrictions to prevent receiving transactions containing a specific mosaic.

Version: 0x01

Entity type: 0x4250

Inlines:

  • Transaction or EmbeddedTransaction
PropertyTypeDescription
restrictionTypeRestrictionTypeType of the account restriction.
modificationsCountuint8Number of modifications in the transaction. A maximum of 255 modifications per transaction is allowed.
modificationsarray(AccountRestrictionModification)Array of account mosaic restriction modifications.

AccountOperationRestrictionModificationTransaction

Configure restrictions to prevent announcing transactions by type.

Version: 0x01

Entity type: 0x4350

Inlines:

  • Transaction or EmbeddedTransaction
PropertyTypeDescription
restrictionTypeRestrictionTypeType of the account restriction.
modificationsCountuint8Number of modifications in the transaction. A maximum of 255 modifications per transaction is allowed.
modificationsarray(AccountRestrictionModification)Array of account operation restriction modifications.

AccountRestrictionModification

PropertyTypeDescription
restrictionModificationTypeRestrictionModificationTypeType of the restriction modification, add or remove.
value(Address, MosaicId or Transaction Type)Modification value (Address, Mosaic or Transaction Type)

RestrictionModificationType

IdDescription
0x00Add the selected restriction
0x01Remove the selected restriction

RestrictionType

IdDescription
0x01Allow only incoming transactions from a given address.
0x02Allow only incoming transactions containing a given mosaic identifier.
0x04Allow only outgoing transactions with a given transaction type.
0x05Account restriction sentinel.
0x81Block incoming transactions from a given address.
0x82Block incoming transactions containing a given mosaic identifier.
0x84Block outgoing transactions with a given transaction type.
← MetadataCross-Chain Swaps →
  • Address restriction
  • Mosaic restriction
  • Operation restriction
  • Examples
    • Blocking spam transactions
    • Enhancing the account security
  • Guides
  • Schemas
    • AccountAddressRestrictionModificationTransaction
    • AccountMosaicRestrictionModificationTransaction
    • AccountOperationRestrictionModificationTransaction
    • AccountRestrictionModification
  • RestrictionModificationType
  • RestrictionType
  • 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