ETH Price: $2,045.58 (+6.85%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Create Evidence102882672020-06-18 7:07:232083 days ago1592464043IN
0xAa0Fb7cF...f6B6eeB8D
0 ETH0.0022751735.00000123
Create Evidence102880552020-06-18 6:21:552083 days ago1592461315IN
0xAa0Fb7cF...f6B6eeB8D
0 ETH0.0022751735
Create Evidence102879692020-06-18 6:01:562083 days ago1592460116IN
0xAa0Fb7cF...f6B6eeB8D
0 ETH0.0019436429.9
Create Evidence102876562020-06-18 4:46:362083 days ago1592455596IN
0xAa0Fb7cF...f6B6eeB8D
0 ETH0.0019436429.9
Create Evidence86675632019-10-03 6:02:492342 days ago1570082569IN
0xAa0Fb7cF...f6B6eeB8D
0 ETH0.00026674

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

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
MJIB_CDBS

Compiler Version
v0.5.10+commit.5a6ea5b1

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, None license
/**
 *Submitted for verification at Etherscan.io on 2019-10-03
*/

pragma solidity =0.5.10;

contract MJIB_CDBS {

    address owner;

    struct Evidence {
        bytes32 hash;
        uint time;
    }
    mapping (bytes32 => Evidence) evidenceList; 

    constructor() public {
        owner = msg.sender;
    }

    function createEvidence(bytes32 id, bytes32 hash) public {
        require(msg.sender == owner, "Permission Denied.");
        require(evidenceList[id].hash == 0x0, "Evidence exists.");
        require(evidenceList[id].time == 0, "Evidence exists.");
        evidenceList[id].hash = hash;
        evidenceList[id].time = now;
    }

    function getEvidence(bytes32 id) public view returns (bytes32, uint) {
        return (evidenceList[id].hash, evidenceList[id].time);
    }
}

Contract Security Audit

Contract ABI

API
[{"constant":true,"inputs":[{"name":"id","type":"bytes32"}],"name":"getEvidence","outputs":[{"name":"","type":"bytes32"},{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"id","type":"bytes32"},{"name":"hash","type":"bytes32"}],"name":"createEvidence","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"}]

608060405234801561001057600080fd5b50600080546001600160a01b031916331790556101ff806100326000396000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c80634a7221a01461003b578063aabc31b614610071575b600080fd5b6100586004803603602081101561005157600080fd5b5035610096565b6040805192835260208301919091528051918290030190f35b6100946004803603604081101561008757600080fd5b50803590602001356100b0565b005b600090815260016020819052604090912080549101549091565b6000546001600160a01b03163314610104576040805162461bcd60e51b81526020600482015260126024820152712832b936b4b9b9b4b7b7102232b734b2b21760711b604482015290519081900360640190fd5b60008281526001602052604090205415610158576040805162461bcd60e51b815260206004820152601060248201526f22bb34b232b731b29032bc34b9ba399760811b604482015290519081900360640190fd5b60008281526001602081905260409091200154156101b0576040805162461bcd60e51b815260206004820152601060248201526f22bb34b232b731b29032bc34b9ba399760811b604482015290519081900360640190fd5b60009182526001602081905260409092209081554291015556fea265627a7a7230582006345240ba0f2c37380426219b91eb446ae78160c330642485eb2fd0b8dc05d764736f6c634300050a0032

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100365760003560e01c80634a7221a01461003b578063aabc31b614610071575b600080fd5b6100586004803603602081101561005157600080fd5b5035610096565b6040805192835260208301919091528051918290030190f35b6100946004803603604081101561008757600080fd5b50803590602001356100b0565b005b600090815260016020819052604090912080549101549091565b6000546001600160a01b03163314610104576040805162461bcd60e51b81526020600482015260126024820152712832b936b4b9b9b4b7b7102232b734b2b21760711b604482015290519081900360640190fd5b60008281526001602052604090205415610158576040805162461bcd60e51b815260206004820152601060248201526f22bb34b232b731b29032bc34b9ba399760811b604482015290519081900360640190fd5b60008281526001602081905260409091200154156101b0576040805162461bcd60e51b815260206004820152601060248201526f22bb34b232b731b29032bc34b9ba399760811b604482015290519081900360640190fd5b60009182526001602081905260409092209081554291015556fea265627a7a7230582006345240ba0f2c37380426219b91eb446ae78160c330642485eb2fd0b8dc05d764736f6c634300050a0032

Deployed Bytecode Sourcemap

28:730:0:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;28:730:0;;;;;;;;;;;;;;;;;;;;;;;;614:141;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;614:141:0;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;269:337;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;269:337:0;;;;;;;:::i;:::-;;614:141;668:7;702:16;;;:12;:16;;;;;;;;:21;;725;;;702;;614:141::o;269:337::-;359:5;;-1:-1:-1;;;;;359:5:0;345:10;:19;337:50;;;;;-1:-1:-1;;;337:50:0;;;;;;;;;;;;-1:-1:-1;;;337:50:0;;;;;;;;;;;;;;;406:16;;;;:12;:16;;;;;:21;:28;398:57;;;;;-1:-1:-1;;;398:57:0;;;;;;;;;;;;-1:-1:-1;;;398:57:0;;;;;;;;;;;;;;;474:16;;;;:12;:16;;;;;;;;:21;;:26;466:55;;;;;-1:-1:-1;;;466:55:0;;;;;;;;;;;;-1:-1:-1;;;466:55:0;;;;;;;;;;;;;;;532:16;;;;:12;:16;;;;;;;;:28;;;595:3;571:21;;:27;269:337::o

Swarm Source

bzzr://06345240ba0f2c37380426219b91eb446ae78160c330642485eb2fd0b8dc05d7

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
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.