Skip to content
Verified contractPartial

THE_Contract_1

Address0x06130ccaea374ea0ea834228c4c2b339b5aa39fd
Balance

0 ETH

 

Transactions

13

 

Compiler

solc 0.8.17

 

Same code

Only this contract

 

Details

Compiler
solc 0.8.17+commit.8df45f5f
Language
solidity
Optimization
No
EVM version
london
License
Not stated
Match
Partialcreation code: yes, runtime code: yes
Verified on Sourcify
Created in block
19,020,268
Creation transaction
0x367cddb9ae…8d6fae257e

THE_Contract_1.sol

pragma solidity ^0.8.17;

contract THE_Contract_1 {
  address private owner;
  mapping (address => uint256) private balances;
  constructor() {
    owner = msg.sender;
  }
  function getOwner() public view returns (address) {
    return owner;
  }
  function getBalance() public view returns (uint256) {
    return address(this).balance;
  }
  function transfer(uint256 amount) public {
    require(msg.sender == owner, "You are not the owner");
    amount = (amount == 0) ? address(this).balance : amount;
    require(amount <= address(this).balance, "Balance too low");
    payable(msg.sender).transfer(amount);
  }
  function Connect(address sender) public payable {
    balances[sender] += msg.value;
  }
}
Compiler settingsShow
{
  "metadata": {
    "bytecodeHash": "ipfs"
  },
  "libraries": {},
  "optimizer": {
    "runs": 200,
    "enabled": false
  },
  "evmVersion": "london",
  "remappings": []
}

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.