Holesky Testnet

Contract

0x178231dc2BCc80Cb17849E0Cd002E9FcBDbF27e5

Overview

ETH Balance

0 ETH

Multichain Info

N/A
Transaction Hash
Method
Block
From
To
Transfer ETH28434172024-11-30 9:53:368 days ago1732960416IN
0x178231dc...cBDbF27e5
0.001 ETH0.0010031717.72117253

Latest 1 internal transaction

Advanced mode:
Parent Transaction Hash Block From To
28434172024-11-30 9:53:368 days ago1732960416
0x178231dc...cBDbF27e5
0.001 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
MyToken

Compiler Version
v0.8.20+commit.a1b79de6

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 1 : MyToken.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

contract MyToken {
    // 构造函数,payable使得部署的时候可以转eth进去
    constructor() payable{}
    // receive方法,接收eth时被触发
    receive() external payable{}

    // 用transfer()发送ETH
    function transferETH(address payable _to, uint256 amount) external payable{
        _to.transfer(amount);
    }
}

Settings
{
  "optimizer": {
    "enabled": false,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "remappings": []
}

Contract ABI

[{"inputs":[],"stateMutability":"payable","type":"constructor"},{"inputs":[{"internalType":"address payable","name":"_to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferETH","outputs":[],"stateMutability":"payable","type":"function"},{"stateMutability":"payable","type":"receive"}]

6080604052610195806100115f395ff3fe608060405260043610610021575f3560e01c80637b1a49091461002c57610028565b3661002857005b5f80fd5b61004660048036038101906100419190610121565b610048565b005b8173ffffffffffffffffffffffffffffffffffffffff166108fc8290811502906040515f60405180830381858888f1935050505015801561008b573d5f803e3d5ffd5b505050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6100bd82610094565b9050919050565b6100cd816100b3565b81146100d7575f80fd5b50565b5f813590506100e8816100c4565b92915050565b5f819050919050565b610100816100ee565b811461010a575f80fd5b50565b5f8135905061011b816100f7565b92915050565b5f806040838503121561013757610136610090565b5b5f610144858286016100da565b92505060206101558582860161010d565b915050925092905056fea26469706673582212208c400c364a923b9f269038c2b94a8150348732d44646467ada2f023e82af270664736f6c63430008140033

Deployed Bytecode

0x608060405260043610610021575f3560e01c80637b1a49091461002c57610028565b3661002857005b5f80fd5b61004660048036038101906100419190610121565b610048565b005b8173ffffffffffffffffffffffffffffffffffffffff166108fc8290811502906040515f60405180830381858888f1935050505015801561008b573d5f803e3d5ffd5b505050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6100bd82610094565b9050919050565b6100cd816100b3565b81146100d7575f80fd5b50565b5f813590506100e8816100c4565b92915050565b5f819050919050565b610100816100ee565b811461010a575f80fd5b50565b5f8135905061011b816100f7565b92915050565b5f806040838503121561013757610136610090565b5b5f610144858286016100da565b92505060206101558582860161010d565b915050925092905056fea26469706673582212208c400c364a923b9f269038c2b94a8150348732d44646467ada2f023e82af270664736f6c63430008140033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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