xDAI Price: $1.00 (-0.00%)
Gas: 1 GWei

Contract

0xFc7a5BD22dFc48565D6f04698E566Dd0C71d3155

Overview

xDAI Balance

Gnosis Chain LogoGnosis Chain LogoGnosis Chain Logo0 xDAI

xDAI Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Write253158882022-12-06 12:02:05868 days ago1670328125IN
0xFc7a5BD2...0C71d3155
0 xDAI0.000065251.5

Latest 1 internal transaction

Parent Transaction Hash Block From To
253158862022-12-06 12:01:55868 days ago1670328115  Contract Creation0 xDAI
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Scoreboard

Compiler Version
v0.8.10+commit.fc410830

Optimization Enabled:
Yes with 420 runs

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

pragma solidity >=0.7.0 <0.9.0;

contract Scoreboard {
    
    uint256 score;

    // read the current score

    function read() public view returns (uint256) {
        return score;
    }

    // update a new score

    function write(uint256 newScore) public {
        score = newScore;
    }
}

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

Contract Security Audit

Contract ABI

API
[{"inputs":[],"name":"read","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"newScore","type":"uint256"}],"name":"write","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6080604052348015600f57600080fd5b5060838061001e6000396000f3fe6080604052348015600f57600080fd5b506004361060325760003560e01c80632f048afa14603757806357de26a4146049575b600080fd5b60476042366004605e565b600055565b005b60005460405190815260200160405180910390f35b600060208284031215606f57600080fd5b503591905056fea164736f6c634300080a000a

Deployed Bytecode

0x6080604052348015600f57600080fd5b506004361060325760003560e01c80632f048afa14603757806357de26a4146049575b600080fd5b60476042366004605e565b600055565b005b60005460405190815260200160405180910390f35b600060208284031215606f57600080fd5b503591905056fea164736f6c634300080a000a

Block Transaction Gas Used Reward
view all blocks validated

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