Chain ID
61
Testnet
Mordor (63)
EVM
Shanghai
Block Time
~13 seconds
Step-by-Step Guide
Set Up Development Environment
Install Node.js, then create a Hardhat 2 project with OpenZeppelin's contracts. Foundry works too: its steps are in the Foundry book.
npm install --save-dev hardhat@2 @openzeppelin/contracts
npx hardhat initConfigure for ETC
Add Ethereum Classic mainnet and the Mordor testnet to hardhat.config.js, and compile for the Shanghai EVM. With Foundry, set evm_version = "shanghai" in foundry.toml and pass --legacy when you deploy.
// hardhat.config.js
solidity: {
version: "0.8.24",
settings: { evmVersion: "shanghai" }
},
networks: {
etc: {
url: "https://etc.blockscout.com/api/eth-rpc",
chainId: 61
},
mordor: {
url: "https://etc-mordor.blockscout.com/api/eth-rpc",
chainId: 63
}
}Get Testnet ETC
Get Mordor testnet ETC, which has no monetary value, to deploy and test your contracts without spending real funds.
Getting Mordor ETCWrite Your Contract
Create a Solidity contract. ETC's EVM matches Ethereum's up to the Shanghai upgrade, which is why the configuration above sets evmVersion: Solidity 0.8.25 and later target newer upgrades by default, and code compiled for them can fail 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
Write a deploy script for your contract in scripts/deploy.js (the Hardhat guide shows the pattern), then run it against Mordor 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 Classic61ETChttps://etc.blockscout.com/api/eth-rpcMordor Testnet (Development)
Mordor Testnet63METChttps://etc-mordor.blockscout.com/api/eth-rpcmodule.exports = {
solidity: {
version: "0.8.24",
settings: { evmVersion: "shanghai" }
},
networks: {
etc: {
url: "https://etc.blockscout.com/api/eth-rpc",
chainId: 61,
accounts: [process.env.PRIVATE_KEY]
},
mordor: {
url: "https://etc-mordor.blockscout.com/api/eth-rpc",
chainId: 63,
accounts: [process.env.PRIVATE_KEY]
}
}
}Recommended Tools
Hardhat
Ethereum development environment for compiling, deploying, testing, and debugging smart contracts.
Foundry
A 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.