Source Code
Overview
ETH Balance
ETH Value
$0.00Cross-Chain Transactions
Loading...
Loading
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0x85817E6d...637319E08 The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
Counter
Compiler Version
v0.8.19+commit.7dd6d404
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: Unlicensed
// Deployed with the Atlas IDE
// https://app.atlaszk.com
pragma solidity ^0.8.19;
contract Counter {
uint256 private count;
function increment() public {
count += 1;
}
function decrement() public {
require(count > 0, "Counter is already at 0, can't decrement");
count -= 1;
}
function getCount() public view returns (uint256) {
return count;
}
}{
"optimizer": {
"enabled": true,
"runs": 200
},
"libraries": {},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"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
0x608060405234801561001057600080fd5b50610176806100206000396000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c80632baeceb714610046578063a87d942c14610050578063d09de08a14610065575b600080fd5b61004e61006d565b005b60005460405190815260200160405180910390f35b61004e6100ec565b60008054116100d35760405162461bcd60e51b815260206004820152602860248201527f436f756e74657220697320616c726561647920617420302c2063616e277420646044820152671958dc995b595b9d60c21b606482015260840160405180910390fd5b60016000808282546100e59190610114565b9091555050565b60016000808282546100e5919061012d565b634e487b7160e01b600052601160045260246000fd5b81810381811115610127576101276100fe565b92915050565b80820180821115610127576101276100fe56fea264697066735822122097e933f94307270a7aff5a7278bb4a74f2f5dd4eb42866b998a5082499b54dbd64736f6c63430008130033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100415760003560e01c80632baeceb714610046578063a87d942c14610050578063d09de08a14610065575b600080fd5b61004e61006d565b005b60005460405190815260200160405180910390f35b61004e6100ec565b60008054116100d35760405162461bcd60e51b815260206004820152602860248201527f436f756e74657220697320616c726561647920617420302c2063616e277420646044820152671958dc995b595b9d60c21b606482015260840160405180910390fd5b60016000808282546100e59190610114565b9091555050565b60016000808282546100e5919061012d565b634e487b7160e01b600052601160045260246000fd5b81810381811115610127576101276100fe565b92915050565b80820180821115610127576101276100fe56fea264697066735822122097e933f94307270a7aff5a7278bb4a74f2f5dd4eb42866b998a5082499b54dbd64736f6c63430008130033
Loading...
Loading
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
Multichain Portfolio | 35 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
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.