ETH Price: $2,946.63 (+1.36%)
 

Overview

ETH Balance

Scroll LogoScroll LogoScroll Logo0 ETH

ETH Value

$0.00

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To

There are no matching entries

Please try again later

Advanced mode:
Parent Transaction Hash Block From To
View All Internal Transactions
Cross-Chain Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Decrement

Compiler Version
v0.8.19+commit.7dd6d404

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 1 : HelloWorld.sol
// SPDX-License-Identifier: MIT

// Deployed with the Atlas IDE
// https://app.atlaszk.com

pragma solidity ^0.8.6;

contract Decrement {
    uint256 public count;

    function decrement() public {
        require(count > 0, "Count is already at zero");
        count--;
    }
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "libraries": {},
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

API
[{"inputs":[],"name":"count","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decrement","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b5061011b806100206000396000f3fe6080604052348015600f57600080fd5b506004361060325760003560e01c806306661abd1460375780632baeceb7146051575b600080fd5b603f60005481565b60405190815260200160405180910390f35b60576059565b005b600080541160ad5760405162461bcd60e51b815260206004820152601860248201527f436f756e7420697320616c7265616479206174207a65726f0000000000000000604482015260640160405180910390fd5b60008054908060ba8360c1565b9190505550565b60008160dd57634e487b7160e01b600052601160045260246000fd5b50600019019056fea2646970667358221220d365d34c36f3d5d73bf551773eb9b5775ea19163f839615ba0088e21b2b9ce1564736f6c63430008130033

Deployed Bytecode

0x6080604052348015600f57600080fd5b506004361060325760003560e01c806306661abd1460375780632baeceb7146051575b600080fd5b603f60005481565b60405190815260200160405180910390f35b60576059565b005b600080541160ad5760405162461bcd60e51b815260206004820152601860248201527f436f756e7420697320616c7265616479206174207a65726f0000000000000000604482015260640160405180910390fd5b60008054908060ba8360c1565b9190505550565b60008160dd57634e487b7160e01b600052601160045260246000fd5b50600019019056fea2646970667358221220d365d34c36f3d5d73bf551773eb9b5775ea19163f839615ba0088e21b2b9ce1564736f6c63430008130033

Block Transaction Gas Used Reward
view all blocks sequenced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
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.