Source Code
Overview
ETH Balance
0 ETH
More Info
ContractCreator
Multichain Info
N/A
Latest 1 from a total of 1 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Transfer ETH | 2843417 | 8 days ago | IN | 0.001 ETH | 0.00100317 |
Latest 1 internal transaction
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
2843417 | 8 days ago | 0.001 ETH |
Loading...
Loading
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)
// 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); } }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "remappings": [] }
[{"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"}]
Contract Creation Code
6080604052610195806100115f395ff3fe608060405260043610610021575f3560e01c80637b1a49091461002c57610028565b3661002857005b5f80fd5b61004660048036038101906100419190610121565b610048565b005b8173ffffffffffffffffffffffffffffffffffffffff166108fc8290811502906040515f60405180830381858888f1935050505015801561008b573d5f803e3d5ffd5b505050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6100bd82610094565b9050919050565b6100cd816100b3565b81146100d7575f80fd5b50565b5f813590506100e8816100c4565b92915050565b5f819050919050565b610100816100ee565b811461010a575f80fd5b50565b5f8135905061011b816100f7565b92915050565b5f806040838503121561013757610136610090565b5b5f610144858286016100da565b92505060206101558582860161010d565b915050925092905056fea26469706673582212208c400c364a923b9f269038c2b94a8150348732d44646467ada2f023e82af270664736f6c63430008140033
Deployed Bytecode
0x608060405260043610610021575f3560e01c80637b1a49091461002c57610028565b3661002857005b5f80fd5b61004660048036038101906100419190610121565b610048565b005b8173ffffffffffffffffffffffffffffffffffffffff166108fc8290811502906040515f60405180830381858888f1935050505015801561008b573d5f803e3d5ffd5b505050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6100bd82610094565b9050919050565b6100cd816100b3565b81146100d7575f80fd5b50565b5f813590506100e8816100c4565b92915050565b5f819050919050565b610100816100ee565b811461010a575f80fd5b50565b5f8135905061011b816100f7565b92915050565b5f806040838503121561013757610136610090565b5b5f610144858286016100da565b92505060206101558582860161010d565b915050925092905056fea26469706673582212208c400c364a923b9f269038c2b94a8150348732d44646467ada2f023e82af270664736f6c63430008140033
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.