Smart contracts deployed on MegaETH Testnet using Foundry CLI.
| Contract | Address | TX Hash | Date |
|---|---|---|---|
| MegaCounter.sol | 0x852D8eBF501D8041a6Ad28561bac5cCeDFc0114 | 0xc99ee214e1f60663a46ffaec0ec8ff07f5c8dcfdbdb8ccaaf3f9d105e8cdf47c | May 28, 2026 |
High-frequency counter showcasing MegaETH's real-time block speed. Tracks count, last caller, and timestamp. Emits events on every increment.
- Solidity 0.8.35
- Foundry (forge)
- MegaETH Testnet (Chain ID: 6343)
- RPC: https://carrot.megaeth.com/rpc
forge create src/MegaCounter.sol:MegaCounter
--rpc-url https://carrot.megaeth.com/rpc
--private-key $PRIVATE_KEY
--broadcast