Get Started/Quick Start

Smart Contracts on Siriux

Learn how to deploy and interact with smart contracts on the Siriux blockchain.

Smart Contracts on Siriux

What Are Smart Contracts?

Smart contracts are self-executing programs stored on the blockchain that run when predetermined conditions are met. They allow for trustless automation, removing intermediaries and increasing efficiency.

Why Deploy on Siriux?

Siriux Blockchain is optimized for smart contract execution with:

  • EVM Compatibility – Deploy Ethereum-based contracts with minimal modifications.
  • Low Fees & Fast Transactions – More efficient execution than traditional networks.
  • AI-Powered Security – Prevent vulnerabilities with automated risk detection.
  • ZK-Proof Integration – Enhance privacy and scalability.

How to Deploy a Smart Contract on Siriux

1️⃣ Set Up Your Development Environment

Ensure you have the following installed:

  • Node.js & npm – Required for smart contract frameworks like Hardhat or Truffle.
  • MetaMask – Connected to Siriux Mainnet or Testnet.
  • Hardhat or Truffle – Smart contract development frameworks.

2️⃣ Connect to the Siriux Network

Add the network details to your Hardhat or Truffle configuration:

module.exports = {
  networks: {
    siriux: {
      url: "https://rpc.siriux.ai",
      chainId: 202,
      accounts: ["YOUR_PRIVATE_KEY"]
    }
  }
};

For Testnet, use https://rpc.testnet.siriux.ai with Chain ID 201.

3️⃣ Write Your First Smart Contract

Example Solidity contract:

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
 
contract HelloWorld {
    string public message;
    
    constructor(string memory _message) {
        message = _message;
    }
    
    function setMessage(string memory _newMessage) public {
        message = _newMessage;
    }
}

4️⃣ Compile and Deploy

Run the following commands to deploy:

npx hardhat compile
npx hardhat run --network siriux scripts/deploy.js

5️⃣ Verify Your Smart Contract

Once deployed, verify the contract on the Siriux Explorer to interact with it.

You are now ready to build and deploy smart contracts on Siriux! 🚀

logo
© 2025 Siriux Foundation. All rights reserved.