Change Chain
  • Change Chain
  • Introduction
    • Introduction
    • Key Features
  • Architecture
    • Overview
    • Consensus
    • Transaction Processing
      • Transaction Lifecycle
      • High Throughput Mechanisms
    • Network Layers
    • Interoperability
    • Technical Specifications
  • Mining
    • Mining
      • Setting Up a Mining Node
      • Solo Miner
      • Pool Mining
      • System Requirements
      • Installation
      • Troubleshooting
    • Backup and Restore
    • Gas Model
    • Mining Rewards
    • Tokenomics
  • Ecosystem
    • Ecosystem Components
      • Wallets
      • Explorer
      • Governance
    • Change Chain vs. Layer 2
  • Roadmap
    • Roadmap
  • FAQ
    • FAQ
  • Developer Resources
    • Incentives and Support
    • Development Tools
      • CLI
      • Debugging Tools
      • Testing Framework
    • SDKs
    • Developing Smart Contracts
Powered by GitBook
On this page
  • ChangeCLI
  • CLI Commands
  • Configuration File Example
  1. Developer Resources
  2. Development Tools

CLI

ChangeCLI

A powerful tool for interacting with the Change Chain network.

Features:

  • Node management (start, stop, sync status).

  • Account creation and management.

  • Transaction creation and broadcasting.

  • Smart contract deployment and interaction.

  • Network monitoring tools.

CLI Commands

Example: Deploying a Smart Contract Using ChangeCLI

// # Compile the smart contract
changecli compile MyContract.sol

# Deploy the contract to the network
changecli deploy MyContract.bin --network mainnet --from 0xYOUR_ADDRESS --gas-limit 3000000

Explanation:

  • changecli compile: Compiles the Solidity contract.

  • changecli deploy: Deploys the compiled contract to the specified network.

Configuration File Example

changecli-config.json

{
  "network": "mainnet",
  "provider": "https://node.changechain.org",
  "wallet": {
    "privateKey": "0xYOUR_PRIVATE_KEY"
  },
  "compilerOptions": {
    "optimization": true,
    "runs": 200
  }
}

Explanation:

  • network: Specifies the network to interact with.

  • provider: URL of the Change Chain node.

  • wallet: Contains the private key for transaction signing.

  • compilerOptions: Settings for the Solidity compiler.

PreviousDevelopment ToolsNextDebugging Tools

Last updated 7 months ago