Getting Started with ETC Development
Deploy your first smart contract to Ethereum Classic in under 10 minutes. Follow this step-by-step guide using industry-standard tools.
Chain ID
61
Testnet
Mordor (63)
EVM
Shanghai
Block Time
~13 seconds
Step-by-Step Guide
Set Up Development Environment
Install Node.js, npm, and your preferred development framework (Hardhat or Foundry recommended).
npm install --save-dev hardhatConfigure for ETC
Add Ethereum Classic mainnet and Mordor testnet to your hardhat.config.js or foundry.toml configuration.
// hardhat.config.js
networks: {
etc: {
url: "https://etc.rivet.link",
chainId: 61
},
mordor: {
url: "https://rpc.mordor.etccooperative.org",
chainId: 63
}
}Get Testnet ETC
Request Mordor testnet ETC from a faucet to deploy and test your contracts without spending real funds.
Mordor FaucetWrite Your Contract
Create a Solidity smart contract. ETC is fully EVM-compatible, so any Ethereum contract works on ETC.
// contracts/MyToken.sol
pragma solidity ^0.8.20;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
contract MyToken is ERC20 {
constructor() ERC20("MyToken", "MTK") {
_mint(msg.sender, 1000000 * 10 ** decimals());
}
}Deploy to Testnet
Deploy your contract to Mordor testnet first. Test thoroughly before deploying to mainnet.
npx hardhat run scripts/deploy.js --network mordorVerify on Blockscout
Verify your contract source code on Blockscout for transparency and to enable contract interaction.
Contract VerificationNetwork Configuration
Mainnet (Production)
Ethereum Classic61ETCetc.rivet.linkMordor Testnet (Development)
Mordor Testnet63METCrpc.mordor.etccooperative.orgmodule.exports = {
networks: {
etc: {
url: "https://etc.rivet.link",
chainId: 61,
accounts: [process.env.PRIVATE_KEY]
},
mordor: {
url: "https://rpc.mordor.etccooperative.org",
chainId: 63,
accounts: [process.env.PRIVATE_KEY]
}
}
}Recommended Tools
Hardhat
Ethereum development environment for compiling, deploying, testing, and debugging smart contracts.
Foundry
Blazing fast, portable, and modular toolkit for Ethereum application development written in Rust.
Remix IDE
Browser-based IDE for Solidity development with built-in compiler, debugger, and deployment tools.
Development Tips
Always Test on Mordor First
Deploy and test thoroughly on testnet before mainnet. Mordor has the same EVM as mainnet.
Use Established Patterns
Leverage OpenZeppelin contracts for tokens, access control, and common patterns.
Verify Your Contracts
Verify source code on Blockscout for transparency and easier interaction.
Mind Gas Costs
ETC gas is cheaper than ETH, but optimize contracts to minimize user costs.
Need More Help?
Explore our documentation, join the community, or check out example projects.