ETH Price: $3,270.86 (+4.58%)
 

Overview

ETH Balance

0.0226 ETH

Eth Value

$73.92 (@ $3,270.86/ETH)
Transaction Hash
Method
Block
From
To
Deposit To184317392023-10-26 3:33:47462 days ago1698291227IN
0xC01801bE...07984dBAc
0.0008 ETH0.0019040867.11371738
Deposit To184317092023-10-26 3:27:47462 days ago1698290867IN
0xC01801bE...07984dBAc
0.0008 ETH0.0016466958.04143396
Deposit To184255482023-10-25 6:44:11463 days ago1698216251IN
0xC01801bE...07984dBAc
0.0008 ETH0.0003549212.51005378
Deposit To184203722023-10-24 13:19:23464 days ago1698153563IN
0xC01801bE...07984dBAc
0.009 ETH0.0011086639.07730753
Deposit To184200742023-10-24 12:19:23464 days ago1698149963IN
0xC01801bE...07984dBAc
0.002 ETH0.0006621323.33841198
Deposit To184196512023-10-24 10:53:59464 days ago1698144839IN
0xC01801bE...07984dBAc
0.005 ETH0.0005429219.13677909
Deposit To184122732023-10-23 10:08:11465 days ago1698055691IN
0xC01801bE...07984dBAc
0.001 ETH0.000248558.76097329
Deposit To184099982023-10-23 2:26:59465 days ago1698028019IN
0xC01801bE...07984dBAc
0.0008 ETH0.0003618712.75518451
Deposit To183911132023-10-20 11:02:59468 days ago1697799779IN
0xC01801bE...07984dBAc
0.0008 ETH0.0003642112.83751586
Deposit To183888732023-10-20 3:32:11468 days ago1697772731IN
0xC01801bE...07984dBAc
0.0008 ETH0.0004063514.32300772
Deposit To183887502023-10-20 3:07:35468 days ago1697771255IN
0xC01801bE...07984dBAc
0.0008 ETH0.0004951810.8900731

Latest 1 internal transaction

Advanced mode:
Parent Transaction Hash Block
From
To
183838512023-10-19 10:42:23469 days ago1697712143  Contract Creation0 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
RelationGasStorer

Compiler Version
v0.8.19+commit.7dd6d404

Optimization Enabled:
Yes with 1000 runs

Other Settings:
default evmVersion
File 1 of 1 : RelationGasStorer.sol
// SPDX-License-Identifier: GPL-3.0

pragma solidity ^0.8.19;

contract RelationGasStorer {
    mapping(address => uint256) public deposits;
    address public owner;

    event Deposit(address from, address to, uint256 amount);
    event Withdraw(address to, uint256 amount);

    modifier onlyOwner() {
        require(msg.sender == owner, "Caller is not the owner");
        _;
    }

    constructor (address _owner) {
        owner = _owner;
    }

    function depositTo(address to) external payable {
        deposits[to] += msg.value;
        emit Deposit(msg.sender, to, msg.value);
    }

    function withdraw(address to, uint256 amount) external onlyOwner {
        payable(to).transfer(amount);
        emit Withdraw(to, amount);
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"depositTo","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"deposits","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60803461007457601f61031538819003918201601f19168301916001600160401b038311848410176100795780849260209460405283398101031261007457516001600160a01b0381169081900361007457600180546001600160a01b03191691909117905560405161028590816100908239f35b600080fd5b634e487b7160e01b600052604160045260246000fdfe60806040818152600436101561001457600080fd5b600091823560e01c9081638da5cb5b1461020f57508063b760faf914610170578063f3fef3a3146100865763fc7e286d1461004e57600080fd5b3461008257602036600319011261008257806020926001600160a01b03610073610234565b16815280845220549051908152f35b5080fd5b503461008257806003193601126100825761009f610234565b90602435916001600160a01b039081600154163303610113571683838282821561010a575b839283928392f115610100577f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a94243649282519182526020820152a180f35b81513d85823e3d90fd5b506108fc6100c4565b606483517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f43616c6c6572206973206e6f7420746865206f776e65720000000000000000006044820152fd5b506020366003190112610082576001600160a01b0361018d610234565b1690818352826020528083208054903482018092116101e257917f5548c837ab068cf56a2c2479df0882a4922fd203edb7517321831d95078c5f6293916060935580519133835260208301523490820152a180f35b6024857f4e487b710000000000000000000000000000000000000000000000000000000081526011600452fd5b8390346100825781600319360112610082576020906001600160a01b03600154168152f35b600435906001600160a01b038216820361024a57565b600080fdfea2646970667358221220aab0c2549e2382742749c12caf6c32498414102a891f405a2bfabde50db0e3d264736f6c63430008130033000000000000000000000000e0acd74826c6fb419a543404e3b3375a2d99d0a8

Deployed Bytecode

0x60806040818152600436101561001457600080fd5b600091823560e01c9081638da5cb5b1461020f57508063b760faf914610170578063f3fef3a3146100865763fc7e286d1461004e57600080fd5b3461008257602036600319011261008257806020926001600160a01b03610073610234565b16815280845220549051908152f35b5080fd5b503461008257806003193601126100825761009f610234565b90602435916001600160a01b039081600154163303610113571683838282821561010a575b839283928392f115610100577f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a94243649282519182526020820152a180f35b81513d85823e3d90fd5b506108fc6100c4565b606483517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f43616c6c6572206973206e6f7420746865206f776e65720000000000000000006044820152fd5b506020366003190112610082576001600160a01b0361018d610234565b1690818352826020528083208054903482018092116101e257917f5548c837ab068cf56a2c2479df0882a4922fd203edb7517321831d95078c5f6293916060935580519133835260208301523490820152a180f35b6024857f4e487b710000000000000000000000000000000000000000000000000000000081526011600452fd5b8390346100825781600319360112610082576020906001600160a01b03600154168152f35b600435906001600160a01b038216820361024a57565b600080fdfea2646970667358221220aab0c2549e2382742749c12caf6c32498414102a891f405a2bfabde50db0e3d264736f6c63430008130033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

000000000000000000000000e0acd74826c6fb419a543404e3b3375a2d99d0a8

-----Decoded View---------------
Arg [0] : _owner (address): 0xe0aCd74826c6fb419a543404E3B3375A2D99d0a8

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000e0acd74826c6fb419a543404e3b3375a2d99d0a8


Block Transaction Difficulty 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
Loading...
Loading
[ 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.