ETH Price: $2,900.79 (+0.25%)
 

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

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0x398aC2cA...812BAEf19
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.18+commit.87f61d96

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion, None license

Contract Source Code (Solidity)

/**
 *Submitted for verification at scrollscan.com on 2023-10-27
*/

/// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

contract Counter {
    string public contractName;
    uint256 public counter;

    constructor(string memory _name) {
        contractName = _name;
        counter = 0;
    }

    function incrementCounter() public {
        counter++;
    }
}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"string","name":"_name","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"contractName","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"counter","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"incrementCounter","outputs":[],"stateMutability":"nonpayable","type":"function"}]

0x60806040523480156200001157600080fd5b50604051620008ab380380620008ab8339818101604052810190620000379190620001eb565b806000908162000048919062000487565b506000600181905550506200056e565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b620000c18262000076565b810181811067ffffffffffffffff82111715620000e357620000e262000087565b5b80604052505050565b6000620000f862000058565b9050620001068282620000b6565b919050565b600067ffffffffffffffff82111562000129576200012862000087565b5b620001348262000076565b9050602081019050919050565b60005b838110156200016157808201518184015260208101905062000144565b60008484015250505050565b6000620001846200017e846200010b565b620000ec565b905082815260208101848484011115620001a357620001a262000071565b5b620001b084828562000141565b509392505050565b600082601f830112620001d057620001cf6200006c565b5b8151620001e28482602086016200016d565b91505092915050565b60006020828403121562000204576200020362000062565b5b600082015167ffffffffffffffff81111562000225576200022462000067565b5b6200023384828501620001b8565b91505092915050565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200028f57607f821691505b602082108103620002a557620002a462000247565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026200030f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82620002d0565b6200031b8683620002d0565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b600062000368620003626200035c8462000333565b6200033d565b62000333565b9050919050565b6000819050919050565b620003848362000347565b6200039c62000393826200036f565b848454620002dd565b825550505050565b600090565b620003b3620003a4565b620003c081848462000379565b505050565b5b81811015620003e857620003dc600082620003a9565b600181019050620003c6565b5050565b601f82111562000437576200040181620002ab565b6200040c84620002c0565b810160208510156200041c578190505b620004346200042b85620002c0565b830182620003c5565b50505b505050565b600082821c905092915050565b60006200045c600019846008026200043c565b1980831691505092915050565b600062000477838362000449565b9150826002028217905092915050565b62000492826200023c565b67ffffffffffffffff811115620004ae57620004ad62000087565b5b620004ba825462000276565b620004c7828285620003ec565b600060209050601f831160018114620004ff5760008415620004ea578287015190505b620004f6858262000469565b86555062000566565b601f1984166200050f86620002ab565b60005b82811015620005395784890151825560018201915060208501945060208101905062000512565b8683101562000559578489015162000555601f89168262000449565b8355505b6001600288020188555050505b505050505050565b61032d806200057e6000396000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c80635b34b9661461004657806361bc221a1461005057806375d0c0dc1461006e575b600080fd5b61004e61008c565b005b6100586100a6565b6040516100659190610153565b60405180910390f35b6100766100ac565b60405161008391906101fe565b60405180910390f35b6001600081548092919061009f9061024f565b9190505550565b60015481565b600080546100b9906102c6565b80601f01602080910402602001604051908101604052809291908181526020018280546100e5906102c6565b80156101325780601f1061010757610100808354040283529160200191610132565b820191906000526020600020905b81548152906001019060200180831161011557829003601f168201915b505050505081565b6000819050919050565b61014d8161013a565b82525050565b60006020820190506101686000830184610144565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156101a857808201518184015260208101905061018d565b60008484015250505050565b6000601f19601f8301169050919050565b60006101d08261016e565b6101da8185610179565b93506101ea81856020860161018a565b6101f3816101b4565b840191505092915050565b6000602082019050818103600083015261021881846101c5565b905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061025a8261013a565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361028c5761028b610220565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806102de57607f821691505b6020821081036102f1576102f0610297565b5b5091905056fea264697066735822122079b40b0c548b0c86ba18fe8e1212b6c430fdd8a30ea6b3b48371b7f76c9f960b64736f6c634300081200330000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000d4d6172697374697332325f733200000000000000000000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100415760003560e01c80635b34b9661461004657806361bc221a1461005057806375d0c0dc1461006e575b600080fd5b61004e61008c565b005b6100586100a6565b6040516100659190610153565b60405180910390f35b6100766100ac565b60405161008391906101fe565b60405180910390f35b6001600081548092919061009f9061024f565b9190505550565b60015481565b600080546100b9906102c6565b80601f01602080910402602001604051908101604052809291908181526020018280546100e5906102c6565b80156101325780601f1061010757610100808354040283529160200191610132565b820191906000526020600020905b81548152906001019060200180831161011557829003601f168201915b505050505081565b6000819050919050565b61014d8161013a565b82525050565b60006020820190506101686000830184610144565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156101a857808201518184015260208101905061018d565b60008484015250505050565b6000601f19601f8301169050919050565b60006101d08261016e565b6101da8185610179565b93506101ea81856020860161018a565b6101f3816101b4565b840191505092915050565b6000602082019050818103600083015261021881846101c5565b905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061025a8261013a565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361028c5761028b610220565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806102de57607f821691505b6020821081036102f1576102f0610297565b5b5091905056fea264697066735822122079b40b0c548b0c86ba18fe8e1212b6c430fdd8a30ea6b3b48371b7f76c9f960b64736f6c63430008120033

Deployed Bytecode Sourcemap

61:256:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;251:63;;;:::i;:::-;;118:22;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;85:26;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;251:63;297:7;;:9;;;;;;;;;:::i;:::-;;;;;;251:63::o;118:22::-;;;;:::o;85:26::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;7:77:1:-;44:7;73:5;62:16;;7:77;;;:::o;90:118::-;177:24;195:5;177:24;:::i;:::-;172:3;165:37;90:118;;:::o;214:222::-;307:4;345:2;334:9;330:18;322:26;;358:71;426:1;415:9;411:17;402:6;358:71;:::i;:::-;214:222;;;;:::o;442:99::-;494:6;528:5;522:12;512:22;;442:99;;;:::o;547:169::-;631:11;665:6;660:3;653:19;705:4;700:3;696:14;681:29;;547:169;;;;:::o;722:246::-;803:1;813:113;827:6;824:1;821:13;813:113;;;912:1;907:3;903:11;897:18;893:1;888:3;884:11;877:39;849:2;846:1;842:10;837:15;;813:113;;;960:1;951:6;946:3;942:16;935:27;784:184;722:246;;;:::o;974:102::-;1015:6;1066:2;1062:7;1057:2;1050:5;1046:14;1042:28;1032:38;;974:102;;;:::o;1082:377::-;1170:3;1198:39;1231:5;1198:39;:::i;:::-;1253:71;1317:6;1312:3;1253:71;:::i;:::-;1246:78;;1333:65;1391:6;1386:3;1379:4;1372:5;1368:16;1333:65;:::i;:::-;1423:29;1445:6;1423:29;:::i;:::-;1418:3;1414:39;1407:46;;1174:285;1082:377;;;;:::o;1465:313::-;1578:4;1616:2;1605:9;1601:18;1593:26;;1665:9;1659:4;1655:20;1651:1;1640:9;1636:17;1629:47;1693:78;1766:4;1757:6;1693:78;:::i;:::-;1685:86;;1465:313;;;;:::o;1784:180::-;1832:77;1829:1;1822:88;1929:4;1926:1;1919:15;1953:4;1950:1;1943:15;1970:233;2009:3;2032:24;2050:5;2032:24;:::i;:::-;2023:33;;2078:66;2071:5;2068:77;2065:103;;2148:18;;:::i;:::-;2065:103;2195:1;2188:5;2184:13;2177:20;;1970:233;;;:::o;2209:180::-;2257:77;2254:1;2247:88;2354:4;2351:1;2344:15;2378:4;2375:1;2368:15;2395:320;2439:6;2476:1;2470:4;2466:12;2456:22;;2523:1;2517:4;2513:12;2544:18;2534:81;;2600:4;2592:6;2588:17;2578:27;;2534:81;2662:2;2654:6;2651:14;2631:18;2628:38;2625:84;;2681:18;;:::i;:::-;2625:84;2446:269;2395:320;;;:::o

Swarm Source

ipfs://79b40b0c548b0c86ba18fe8e1212b6c430fdd8a30ea6b3b48371b7f76c9f960b

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.