ETH Price: $2,918.04 (+2.78%)
 

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
Record91318182024-09-09 8:16:14504 days ago1725869774IN
0xBdCF76E5...B184F834F
0 ETH0.000001480.043

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 0xd8Eae841...d8e653737
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
OddOrEven

Compiler Version
v0.8.24+commit.e11b9ed9

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at scrollscan.com on 2024-03-09
*/

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

contract OddOrEven {
    uint256 private recentBlockRecord;

    function record() public {
        recentBlockRecord = block.number % 2;
    }
}

Contract Security Audit

Contract ABI

API
[{"inputs":[],"name":"record","outputs":[],"stateMutability":"nonpayable","type":"function"}]

0x608060405234801561000f575f80fd5b5060d98061001c5f395ff3fe6080604052348015600e575f80fd5b50600436106026575f3560e01c8063266cf10914602a575b5f80fd5b60306032565b005b600243603d9190607a565b5f81905550565b5f819050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f6082826044565b9150608b836044565b9250826098576097604d565b5b82820690509291505056fea264697066735822122043e5f3567dd679674b5b7bf87db968b31163801695b6558e522163c998a8062664736f6c63430008180033

Deployed Bytecode

0x6080604052348015600e575f80fd5b50600436106026575f3560e01c8063266cf10914602a575b5f80fd5b60306032565b005b600243603d9190607a565b5f81905550565b5f819050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f6082826044565b9150608b836044565b9250826098576097604d565b5b82820690509291505056fea264697066735822122043e5f3567dd679674b5b7bf87db968b31163801695b6558e522163c998a8062664736f6c63430008180033

Deployed Bytecode Sourcemap

60:151:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;128:80;;;:::i;:::-;;;199:1;184:12;:16;;;;:::i;:::-;164:17;:36;;;;128:80::o;7:77:1:-;44:7;73:5;62:16;;7:77;;;:::o;90:180::-;138:77;135:1;128:88;235:4;232:1;225:15;259:4;256:1;249:15;276:176;308:1;325:20;343:1;325:20;:::i;:::-;320:25;;359:20;377:1;359:20;:::i;:::-;354:25;;398:1;388:35;;403:18;;:::i;:::-;388:35;444:1;441;437:9;432:14;;276:176;;;;:::o

Swarm Source

ipfs://43e5f3567dd679674b5b7bf87db968b31163801695b6558e522163c998a80626

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
[ 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.