Cytonic Ethereum
Cytonic Ethereum Testnet is a Layer 2 (L2) Ethereum Virtual Machine (EVM)-compatible blockchain designed for scalable, low-cost decentralized applications. This documentation provides essential details for developers to interact with the network.
Network Details
Network Name
Cytonic Ethereum Testnet
RPC URL
https://rpc.evm.testnet.cytonic.com
Chain ID
0xCC02 (52226 in decimal)
Block Explorer
https://explorer.evm.testnet.cytonic.com
Currency Symbol
ССС (test token)
Faucet
Contact the team or check official resources for testnet $ССС.
Connecting to the Network
1. MetaMask Configuration
Open MetaMask and click the network dropdown.
Select Add Network.
Fill in the details:
Network Name:
Cytonic Ethereum TestnetNew RPC URL:
https://rpc.evm.testnet.cytonic.comChain ID:
52226(or0xCC02)Currency Symbol:
CCCBlock Explorer:
https://explorer.evm.testnet.cytonic.com
2. Hardhat Configuration
Add the network to hardhat.config.js:
module.exports = {
networks: {
cytonicTestnet: {
url: "https://rpc.evm.testnet.cytonic.com",
chainId: 52226,
accounts: [process.env.PRIVATE_KEY]
}
}
};3. Foundry (Forge) Configuration
Add the RPC to foundry.toml:
[rpc_endpoints]
cytonicTestnet = "https://rpc.evm.testnet.cytonic.com"
[profile.default]
chain_id = 52226Example Contract Deployment
Simple Storage Contract
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
contract SimpleStorage {
uint256 public value;
function setValue(uint256 _value) external {
value = _value;
}
}Deployment Script (Hardhat)
async function main() {
const Contract = await ethers.getContractFactory("SimpleStorage");
const contract = await Contract.deploy();
await contract.deployed();
console.log("Deployed to:", contract.address);
}
main().catch((error) => {
console.error(error);
process.exitCode = 1;
});Run with:
npx hardhat run scripts/deploy.js --network cytonicTestnetInteracting with the Blockchain
Using ethers.js
const provider = new ethers.providers.JsonRpcProvider(
"https://rpc.evm.testnet.cytonic.com"
);
const contract = new ethers.Contract(
"0xYourContractAddress",
["function value() view returns (uint256)", "function setValue(uint256)"],
provider
);
// Read value
const value = await contract.value();
console.log("Value:", value.toString());Troubleshooting
Transaction Stuck? Ensure your gas fee is sufficient. Use the block explorer to check network congestion.
Chain ID Mismatch Verify the Chain ID is
52226(or0xCC02).RPC Connection Issues Double-check the RPC URL for typos. Test connectivity using tools like
curl.
Support
For assistance, join the Cytonic developer community: Discord Support Server
Note: $CCC tokens on the testnet have no real-world value. Always use testnet funds for development purposes.
Last updated