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.
Last updated