POL Price: $0.717259 (+2.65%)
Gas: 37 GWei
 

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Get All Coas643597042024-11-16 15:39:3617 days ago1731771576IN
0xf88933b8...892D10682
0 POL0.0732011999.11421277
Add Coa Hash601940092024-08-04 18:42:05121 days ago1722796925IN
0xf88933b8...892D10682
0 POL0.0027881328.72734171
Add Coa Hash576885162024-06-02 16:58:20184 days ago1717347500IN
0xf88933b8...892D10682
0 POL0.0029116530.00000002
Add Coa Hash576885082024-06-02 16:58:02184 days ago1717347482IN
0xf88933b8...892D10682
0 POL0.0029116530.00000002
Add Coa Hash576491872024-06-01 16:29:35185 days ago1717259375IN
0xf88933b8...892D10682
0 POL0.0029116530.00000003
Add Coa Hash569577352024-05-14 11:50:50203 days ago1715687450IN
0xf88933b8...892D10682
0 POL0.0029116530.00000029
Add Coa Hash569577262024-05-14 11:50:30203 days ago1715687430IN
0xf88933b8...892D10682
0 POL0.0029116530.00000033
Add Coa Hash565724202024-05-04 15:33:44213 days ago1714836824IN
0xf88933b8...892D10682
0 POL0.0029116530.00000006
Add Coa Hash564204542024-04-30 12:06:41217 days ago1714478801IN
0xf88933b8...892D10682
0 POL0.01356136139.72869453
Add Coa Hash554333022024-04-04 11:22:46243 days ago1712229766IN
0xf88933b8...892D10682
0 POL0.01489987153.5198721
Add Coa Hash553744012024-04-02 21:38:30245 days ago1712093910IN
0xf88933b8...892D10682
0 POL0.00982444101.22555346
Add Coa Hash553743952024-04-02 21:38:16245 days ago1712093896IN
0xf88933b8...892D10682
0 POL0.01017104104.79672768
Add Coa Hash553743872024-04-02 21:38:00245 days ago1712093880IN
0xf88933b8...892D10682
0 POL0.01135197116.96439304
Add Coa Hash553215942024-04-01 11:41:43246 days ago1711971703IN
0xf88933b8...892D10682
0 POL0.01513215155.91315979
Add Coa Hash552663282024-03-30 22:41:56248 days ago1711838516IN
0xf88933b8...892D10682
0 POL0.0085651288.25021862
Add Coa Hash550447302024-03-25 0:44:18254 days ago1711327458IN
0xf88933b8...892D10682
0 POL0.0053534155.15852369
Add Coa Hash550443322024-03-25 0:29:09254 days ago1711326549IN
0xf88933b8...892D10682
0 POL0.0032241133.2194234
Add Coa Hash549966012024-03-23 17:41:09255 days ago1711215669IN
0xf88933b8...892D10682
0 POL0.0038543239.71277291
Add Coa Hash546492022024-03-14 13:18:07264 days ago1710422287IN
0xf88933b8...892D10682
0 POL0.01644291169.41856092
Add Coa Hash546491932024-03-14 13:17:47264 days ago1710422267IN
0xf88933b8...892D10682
0 POL0.01664771171.52869161
Add Coa Hash546491842024-03-14 13:17:29264 days ago1710422249IN
0xf88933b8...892D10682
0 POL0.01753712180.69265135
Add Coa Hash546491742024-03-14 13:17:07264 days ago1710422227IN
0xf88933b8...892D10682
0 POL0.0197126203.10756868
Add Coa Hash546491652024-03-14 13:16:47264 days ago1710422207IN
0xf88933b8...892D10682
0 POL0.01979795203.98694875
Add Coa Hash546090022024-03-13 12:45:52265 days ago1710333952IN
0xf88933b8...892D10682
0 POL0.02521252259.77562055
Add Coa Hash546089932024-03-13 12:45:34265 days ago1710333934IN
0xf88933b8...892D10682
0 POL0.02536863261.38412227
View all transactions

Parent Transaction Hash Block From To
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
SMCOASC

Compiler Version
v0.8.21+commit.d9974bed

Optimization Enabled:
Yes with 200 runs

Other Settings:
istanbul EvmVersion, None license
File 1 of 3 : SMCOASC.sol
//SPDX-License-Identifier: SM
pragma solidity ^0.8.21;
import "Ownable.sol";

contract SMCOASC is Ownable {
  string[] _coas;

  function addCoaHash(string memory hash) public onlyOwner {
    _coas.push(hash);
  }

  function getCoa(string calldata hash) public view returns(bool){
    for(uint index = 0; index < _coas.length; index++){
      if(keccak256(abi.encodePacked(_coas[index])) == keccak256(abi.encodePacked(hash)))
        return true;
    }
    return false;
  }  

  function deleteCoa(string memory hash) public onlyOwner {
	  for(uint index = 0; index < _coas.length; index++){
      if(keccak256(abi.encodePacked(_coas[index])) == keccak256(abi.encodePacked(hash)))
        delete _coas[index];
    }
  }

  function getAllCoas() public onlyOwner view returns(string[] memory){
    return _coas;
  }
}

File 2 of 3 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

import "Context.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby disabling any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 3 of 3 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

Settings
{
  "evmVersion": "istanbul",
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "libraries": {
    "SMCOASC.sol": {}
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[{"internalType":"string","name":"hash","type":"string"}],"name":"addCoaHash","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"hash","type":"string"}],"name":"deleteCoa","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getAllCoas","outputs":[{"internalType":"string[]","name":"","type":"string[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"hash","type":"string"}],"name":"getCoa","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b5061001a3361001f565b61006f565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61099a8061007e6000396000f3fe608060405234801561001057600080fd5b506004361061007d5760003560e01c80638da5cb5b1161005b5780638da5cb5b146100b25780639b46684f146100d2578063ecee4470146100f5578063f2fde38b1461010a57600080fd5b80631a025d78146100825780632fd3270414610097578063715018a6146100aa575b600080fd5b61009561009036600461054b565b61011d565b005b6100956100a536600461054b565b6101e0565b610095610223565b6000546040516001600160a01b0390911681526020015b60405180910390f35b6100e56100e03660046105fc565b610237565b60405190151581526020016100c9565b6100fd6102de565b6040516100c99190610692565b61009561011836600461070c565b6103bf565b61012561043d565b60005b6001548110156101dc5781604051602001610143919061073c565b604051602081830303815290604052805190602001206001828154811061016c5761016c610758565b9060005260206000200160405160200161018691906107a8565b60405160208183030381529060405280519060200120036101ca57600181815481106101b4576101b4610758565b9060005260206000200160006101ca91906104e7565b806101d48161081e565b915050610128565b5050565b6101e861043d565b6001805480820182556000919091527fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf6016101dc8282610894565b61022b61043d565b6102356000610497565b565b6000805b6001548110156102d2578383604051602001610258929190610954565b604051602081830303815290604052805190602001206001828154811061028157610281610758565b9060005260206000200160405160200161029b91906107a8565b60405160208183030381529060405280519060200120036102c05760019150506102d8565b806102ca8161081e565b91505061023b565b50600090505b92915050565b60606102e861043d565b6001805480602002602001604051908101604052809291908181526020016000905b828210156103b65783829060005260206000200180546103299061076e565b80601f01602080910402602001604051908101604052809291908181526020018280546103559061076e565b80156103a25780601f10610377576101008083540402835291602001916103a2565b820191906000526020600020905b81548152906001019060200180831161038557829003601f168201915b50505050508152602001906001019061030a565b50505050905090565b6103c761043d565b6001600160a01b0381166104315760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b61043a81610497565b50565b6000546001600160a01b031633146102355760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610428565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5080546104f39061076e565b6000825580601f10610503575050565b601f01602090049060005260206000209081019061043a91905b80821115610531576000815560010161051d565b5090565b634e487b7160e01b600052604160045260246000fd5b60006020828403121561055d57600080fd5b813567ffffffffffffffff8082111561057557600080fd5b818401915084601f83011261058957600080fd5b81358181111561059b5761059b610535565b604051601f8201601f19908116603f011681019083821181831017156105c3576105c3610535565b816040528281528760208487010111156105dc57600080fd5b826020860160208301376000928101602001929092525095945050505050565b6000806020838503121561060f57600080fd5b823567ffffffffffffffff8082111561062757600080fd5b818501915085601f83011261063b57600080fd5b81358181111561064a57600080fd5b86602082850101111561065c57600080fd5b60209290920196919550909350505050565b60005b83811015610689578181015183820152602001610671565b50506000910152565b6000602080830181845280855180835260408601915060408160051b870101925083870160005b828110156106ff57878503603f19018452815180518087526106e0818989018a850161066e565b601f01601f1916959095018601945092850192908501906001016106b9565b5092979650505050505050565b60006020828403121561071e57600080fd5b81356001600160a01b038116811461073557600080fd5b9392505050565b6000825161074e81846020870161066e565b9190910192915050565b634e487b7160e01b600052603260045260246000fd5b600181811c9082168061078257607f821691505b6020821081036107a257634e487b7160e01b600052602260045260246000fd5b50919050565b60008083546107b68161076e565b600182811680156107ce57600181146107e357610812565b60ff1984168752821515830287019450610812565b8760005260208060002060005b858110156108095781548a8201529084019082016107f0565b50505082870194505b50929695505050505050565b60006001820161083e57634e487b7160e01b600052601160045260246000fd5b5060010190565b601f82111561088f57600081815260208120601f850160051c8101602086101561086c5750805b601f850160051c820191505b8181101561088b57828155600101610878565b5050505b505050565b815167ffffffffffffffff8111156108ae576108ae610535565b6108c2816108bc845461076e565b84610845565b602080601f8311600181146108f757600084156108df5750858301515b600019600386901b1c1916600185901b17855561088b565b600085815260208120601f198616915b8281101561092657888601518255948401946001909101908401610907565b50858210156109445787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b818382376000910190815291905056fea264697066735822122085b0d7fc851e1df4f3dbdd058f4e4e352b857c797ac6a52c036128ff147895e864736f6c63430008150033

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061007d5760003560e01c80638da5cb5b1161005b5780638da5cb5b146100b25780639b46684f146100d2578063ecee4470146100f5578063f2fde38b1461010a57600080fd5b80631a025d78146100825780632fd3270414610097578063715018a6146100aa575b600080fd5b61009561009036600461054b565b61011d565b005b6100956100a536600461054b565b6101e0565b610095610223565b6000546040516001600160a01b0390911681526020015b60405180910390f35b6100e56100e03660046105fc565b610237565b60405190151581526020016100c9565b6100fd6102de565b6040516100c99190610692565b61009561011836600461070c565b6103bf565b61012561043d565b60005b6001548110156101dc5781604051602001610143919061073c565b604051602081830303815290604052805190602001206001828154811061016c5761016c610758565b9060005260206000200160405160200161018691906107a8565b60405160208183030381529060405280519060200120036101ca57600181815481106101b4576101b4610758565b9060005260206000200160006101ca91906104e7565b806101d48161081e565b915050610128565b5050565b6101e861043d565b6001805480820182556000919091527fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf6016101dc8282610894565b61022b61043d565b6102356000610497565b565b6000805b6001548110156102d2578383604051602001610258929190610954565b604051602081830303815290604052805190602001206001828154811061028157610281610758565b9060005260206000200160405160200161029b91906107a8565b60405160208183030381529060405280519060200120036102c05760019150506102d8565b806102ca8161081e565b91505061023b565b50600090505b92915050565b60606102e861043d565b6001805480602002602001604051908101604052809291908181526020016000905b828210156103b65783829060005260206000200180546103299061076e565b80601f01602080910402602001604051908101604052809291908181526020018280546103559061076e565b80156103a25780601f10610377576101008083540402835291602001916103a2565b820191906000526020600020905b81548152906001019060200180831161038557829003601f168201915b50505050508152602001906001019061030a565b50505050905090565b6103c761043d565b6001600160a01b0381166104315760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b61043a81610497565b50565b6000546001600160a01b031633146102355760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610428565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5080546104f39061076e565b6000825580601f10610503575050565b601f01602090049060005260206000209081019061043a91905b80821115610531576000815560010161051d565b5090565b634e487b7160e01b600052604160045260246000fd5b60006020828403121561055d57600080fd5b813567ffffffffffffffff8082111561057557600080fd5b818401915084601f83011261058957600080fd5b81358181111561059b5761059b610535565b604051601f8201601f19908116603f011681019083821181831017156105c3576105c3610535565b816040528281528760208487010111156105dc57600080fd5b826020860160208301376000928101602001929092525095945050505050565b6000806020838503121561060f57600080fd5b823567ffffffffffffffff8082111561062757600080fd5b818501915085601f83011261063b57600080fd5b81358181111561064a57600080fd5b86602082850101111561065c57600080fd5b60209290920196919550909350505050565b60005b83811015610689578181015183820152602001610671565b50506000910152565b6000602080830181845280855180835260408601915060408160051b870101925083870160005b828110156106ff57878503603f19018452815180518087526106e0818989018a850161066e565b601f01601f1916959095018601945092850192908501906001016106b9565b5092979650505050505050565b60006020828403121561071e57600080fd5b81356001600160a01b038116811461073557600080fd5b9392505050565b6000825161074e81846020870161066e565b9190910192915050565b634e487b7160e01b600052603260045260246000fd5b600181811c9082168061078257607f821691505b6020821081036107a257634e487b7160e01b600052602260045260246000fd5b50919050565b60008083546107b68161076e565b600182811680156107ce57600181146107e357610812565b60ff1984168752821515830287019450610812565b8760005260208060002060005b858110156108095781548a8201529084019082016107f0565b50505082870194505b50929695505050505050565b60006001820161083e57634e487b7160e01b600052601160045260246000fd5b5060010190565b601f82111561088f57600081815260208120601f850160051c8101602086101561086c5750805b601f850160051c820191505b8181101561088b57828155600101610878565b5050505b505050565b815167ffffffffffffffff8111156108ae576108ae610535565b6108c2816108bc845461076e565b84610845565b602080601f8311600181146108f757600084156108df5750858301515b600019600386901b1c1916600185901b17855561088b565b600085815260208120601f198616915b8281101561092657888601518255948401946001909101908401610907565b50858210156109445787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b818382376000910190815291905056fea264697066735822122085b0d7fc851e1df4f3dbdd058f4e4e352b857c797ac6a52c036128ff147895e864736f6c63430008150033

Block Transaction Gas Used Reward
view all blocks produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
[ 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.