Source Code
Overview
ETH Balance
0 ETH
More Info
ContractCreator
Multichain Info
N/A
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
Counter
Compiler Version
v0.8.24+commit.e11b9ed9
ZkSolc Version
v1.5.7
Optimization Enabled:
Yes with Mode 3
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.24; contract Counter { uint256 private counter; function increment() public { counter++; } function decrement() public { require(counter > 0, "Counter cannot be negative"); counter--; } function getCount() public view returns (uint256) { return counter; } }
{ "evmVersion": "paris", "optimizer": { "enabled": true, "mode": "3" }, "outputSelection": { "*": { "*": [ "abi", "metadata" ], "": [ "ast" ] } }, "detectMissingLibraries": false, "forceEVMLA": false, "enableEraVMExtensions": true, "libraries": {} }
[{"inputs":[],"name":"decrement","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"increment","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
9c4d535b00000000000000000000000000000000000000000000000000000000000000000100001da085d2eb249c8236a15ba2960db67e8a004cb01ac0206d4fc1e8cb2300000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x0000008003000039000000400030043f00000001002001900000001e0000c13d0000001200100198000000390000613d000000000101043b000000e001100270000000130010009c000000260000613d000000140010009c000000320000613d000000150010009c000000390000c13d0000000001000416000000000001004b000000390000c13d000000000100041a000000000001004b0000003b0000c13d0000001901000041000000800010043f0000002001000039000000840010043f0000001a01000039000000a40010043f0000001a01000041000000c40010043f0000001b0100004100000041000104300000000001000416000000000001004b000000390000c13d0000002001000039000001000010044300000120000004430000001101000041000000400001042e0000000001000416000000000001004b000000390000c13d000000000100041a000000010110003a0000003c0000c13d0000001601000041000000000010043f0000001101000039000000040010043f000000170100004100000041000104300000000001000416000000000001004b000000390000c13d000000000100041a000000800010043f0000001801000041000000400001042e00000000010000190000004100010430000000010110008a000000000010041b0000000001000019000000400001042e0000003f00000432000000400001042e000000410001043000000000000000000000000000000000000000020000000000000000000000000000004000000100000000000000000000000000000000000000000000000000fffffffc00000000000000000000000000000000000000000000000000000000000000000000000000000000d09de08a00000000000000000000000000000000000000000000000000000000a87d942c000000000000000000000000000000000000000000000000000000002baeceb74e487b71000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000024000000000000000000000000000000000000000000000000000000000000002000000080000000000000000008c379a000000000000000000000000000000000000000000000000000000000436f756e7465722063616e6e6f74206265206e6567617469766500000000000000000000000000000000000000000000000000640000008000000000000000001d79e3742113507b2ecb4bffadaa575c370b834bab5e6dffa0ca3bdb5f4302e1
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.