ETH Price: $3,116.16 (-0.02%)
 

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
Grant Access225050122025-05-17 20:04:11210 days ago1747512251IN
0x2f01F5D0...2638B5595
0 ETH0.000046080.96869895
Revoke Access225041642025-05-17 17:12:23210 days ago1747501943IN
0x2f01F5D0...2638B5595
0 ETH0.000030261.17986439
Grant Access225041312025-05-17 17:05:35210 days ago1747501535IN
0x2f01F5D0...2638B5595
0 ETH0.00006231.30966213
Revoke Access225041152025-05-17 17:02:11210 days ago1747501331IN
0x2f01F5D0...2638B5595
0 ETH0.000034311.34513683
Grant Access225031572025-05-17 13:49:35210 days ago1747489775IN
0x2f01F5D0...2638B5595
0 ETH0.000068751.44965525

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
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:
MasterAccessRegistry

Compiler Version
v0.8.30+commit.73712a01

Optimization Enabled:
No with 200 runs

Other Settings:
istanbul EvmVersion, MIT license
/**
 *Submitted for verification at Etherscan.io on 2025-05-12
*/

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

contract MasterAccessRegistry {
    mapping(bytes32 => bool) private accessList;
    address public owner;

    event AccessGranted(bytes32 indexed credentialHash);
    event AccessRevoked(bytes32 indexed credentialHash);

    modifier onlyOwner() {
        require(msg.sender == owner, "Not authorized");
        _;
    }

    constructor() {
        owner = msg.sender;
    }

    function grantAccess(bytes32 credentialHash) external onlyOwner {
        accessList[credentialHash] = true;
        emit AccessGranted(credentialHash);
    }

    function revokeAccess(bytes32 credentialHash) external onlyOwner {
        accessList[credentialHash] = false;
        emit AccessRevoked(credentialHash);
    }

    function hasAccess(bytes32 credentialHash) external view returns (bool) {
        return accessList[credentialHash];
    }
}

Contract Security Audit

Contract ABI

API
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"credentialHash","type":"bytes32"}],"name":"AccessGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"credentialHash","type":"bytes32"}],"name":"AccessRevoked","type":"event"},{"inputs":[{"internalType":"bytes32","name":"credentialHash","type":"bytes32"}],"name":"grantAccess","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"credentialHash","type":"bytes32"}],"name":"hasAccess","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"credentialHash","type":"bytes32"}],"name":"revokeAccess","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6080604052348015600f57600080fd5b5033600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506104a9806100606000396000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c80638da5cb5b14610051578063b1263ada1461006f578063b5e41b061461008b578063db83423d146100a7575b600080fd5b6100596100d7565b604051610066919061033d565b60405180910390f35b61008960048036038101906100849190610393565b6100fd565b005b6100a560048036038101906100a09190610393565b6101e8565b005b6100c160048036038101906100bc9190610393565b6102d3565b6040516100ce91906103db565b60405180910390f35b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461018d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161018490610453565b60405180910390fd5b600080600083815260200190815260200160002060006101000a81548160ff021916908315150217905550807f0135da073807bb75b5ac08972e9dd63b72d73a01c65a5ed22fc25a53ed750d2c60405160405180910390a250565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610278576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161026f90610453565b60405180910390fd5b600160008083815260200190815260200160002060006101000a81548160ff021916908315150217905550807f22303b5aa9038f90ea89a528e81031210b4307c062c2a9d4264e1563421d623060405160405180910390a250565b600080600083815260200190815260200160002060009054906101000a900460ff169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000610327826102fc565b9050919050565b6103378161031c565b82525050565b6000602082019050610352600083018461032e565b92915050565b600080fd5b6000819050919050565b6103708161035d565b811461037b57600080fd5b50565b60008135905061038d81610367565b92915050565b6000602082840312156103a9576103a8610358565b5b60006103b78482850161037e565b91505092915050565b60008115159050919050565b6103d5816103c0565b82525050565b60006020820190506103f060008301846103cc565b92915050565b600082825260208201905092915050565b7f4e6f7420617574686f72697a6564000000000000000000000000000000000000600082015250565b600061043d600e836103f6565b915061044882610407565b602082019050919050565b6000602082019050818103600083015261046c81610430565b905091905056fea2646970667358221220af07de3fe4f0ef3328b0cb6431ff8063829c80f8d45446f01a659dddc013b6d064736f6c634300081e0033

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061004c5760003560e01c80638da5cb5b14610051578063b1263ada1461006f578063b5e41b061461008b578063db83423d146100a7575b600080fd5b6100596100d7565b604051610066919061033d565b60405180910390f35b61008960048036038101906100849190610393565b6100fd565b005b6100a560048036038101906100a09190610393565b6101e8565b005b6100c160048036038101906100bc9190610393565b6102d3565b6040516100ce91906103db565b60405180910390f35b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461018d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161018490610453565b60405180910390fd5b600080600083815260200190815260200160002060006101000a81548160ff021916908315150217905550807f0135da073807bb75b5ac08972e9dd63b72d73a01c65a5ed22fc25a53ed750d2c60405160405180910390a250565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610278576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161026f90610453565b60405180910390fd5b600160008083815260200190815260200160002060006101000a81548160ff021916908315150217905550807f22303b5aa9038f90ea89a528e81031210b4307c062c2a9d4264e1563421d623060405160405180910390a250565b600080600083815260200190815260200160002060009054906101000a900460ff169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000610327826102fc565b9050919050565b6103378161031c565b82525050565b6000602082019050610352600083018461032e565b92915050565b600080fd5b6000819050919050565b6103708161035d565b811461037b57600080fd5b50565b60008135905061038d81610367565b92915050565b6000602082840312156103a9576103a8610358565b5b60006103b78482850161037e565b91505092915050565b60008115159050919050565b6103d5816103c0565b82525050565b60006020820190506103f060008301846103cc565b92915050565b600082825260208201905092915050565b7f4e6f7420617574686f72697a6564000000000000000000000000000000000000600082015250565b600061043d600e836103f6565b915061044882610407565b602082019050919050565b6000602082019050818103600083015261046c81610430565b905091905056fea2646970667358221220af07de3fe4f0ef3328b0cb6431ff8063829c80f8d45446f01a659dddc013b6d064736f6c634300081e0033

Deployed Bytecode Sourcemap

61:866:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;148:20;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;629:163;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;460:161;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;800:124;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;148:20;;;;;;;;;;;;;:::o;629:163::-;349:5;;;;;;;;;;;335:19;;:10;:19;;;327:46;;;;;;;;;;;;:::i;:::-;;;;;;;;;734:5:::1;705:10:::0;:26:::1;716:14;705:26;;;;;;;;;;;;:34;;;;;;;;;;;;;;;;;;769:14;755:29;;;;;;;;;;629:163:::0;:::o;460:161::-;349:5;;;;;;;;;;;335:19;;:10;:19;;;327:46;;;;;;;;;;;;:::i;:::-;;;;;;;;;564:4:::1;535:10;:26:::0;546:14:::1;535:26;;;;;;;;;;;;:33;;;;;;;;;;;;;;;;;;598:14;584:29;;;;;;;;;;460:161:::0;:::o;800:124::-;866:4;890:10;:26;901:14;890:26;;;;;;;;;;;;;;;;;;;;;883:33;;800:124;;;:::o;7:126:1:-;44:7;84:42;77:5;73:54;62:65;;7:126;;;:::o;139:96::-;176:7;205:24;223:5;205:24;:::i;:::-;194:35;;139:96;;;:::o;241:118::-;328:24;346:5;328:24;:::i;:::-;323:3;316:37;241:118;;:::o;365:222::-;458:4;496:2;485:9;481:18;473:26;;509:71;577:1;566:9;562:17;553:6;509:71;:::i;:::-;365:222;;;;:::o;674:117::-;783:1;780;773:12;920:77;957:7;986:5;975:16;;920:77;;;:::o;1003:122::-;1076:24;1094:5;1076:24;:::i;:::-;1069:5;1066:35;1056:63;;1115:1;1112;1105:12;1056:63;1003:122;:::o;1131:139::-;1177:5;1215:6;1202:20;1193:29;;1231:33;1258:5;1231:33;:::i;:::-;1131:139;;;;:::o;1276:329::-;1335:6;1384:2;1372:9;1363:7;1359:23;1355:32;1352:119;;;1390:79;;:::i;:::-;1352:119;1510:1;1535:53;1580:7;1571:6;1560:9;1556:22;1535:53;:::i;:::-;1525:63;;1481:117;1276:329;;;;:::o;1611:90::-;1645:7;1688:5;1681:13;1674:21;1663:32;;1611:90;;;:::o;1707:109::-;1788:21;1803:5;1788:21;:::i;:::-;1783:3;1776:34;1707:109;;:::o;1822:210::-;1909:4;1947:2;1936:9;1932:18;1924:26;;1960:65;2022:1;2011:9;2007:17;1998:6;1960:65;:::i;:::-;1822:210;;;;:::o;2038:169::-;2122:11;2156:6;2151:3;2144:19;2196:4;2191:3;2187:14;2172:29;;2038:169;;;;:::o;2213:164::-;2353:16;2349:1;2341:6;2337:14;2330:40;2213:164;:::o;2383:366::-;2525:3;2546:67;2610:2;2605:3;2546:67;:::i;:::-;2539:74;;2622:93;2711:3;2622:93;:::i;:::-;2740:2;2735:3;2731:12;2724:19;;2383:366;;;:::o;2755:419::-;2921:4;2959:2;2948:9;2944:18;2936:26;;3008:9;3002:4;2998:20;2994:1;2983:9;2979:17;2972:47;3036:131;3162:4;3036:131;:::i;:::-;3028:139;;2755:419;;;:::o

Swarm Source

ipfs://af07de3fe4f0ef3328b0cb6431ff8063829c80f8d45446f01a659dddc013b6d0

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.