Token My Token

Overview [ERC-20]

Max Total Supply:
1,000,000 MTK

Holders:
2

Profile Summary

 
Contract:
0x35e1b6e55b75e16f25bc114df48cf8e15c18c0b70x35E1b6E55b75E16f25bc114DF48Cf8E15C18c0b7

Decimals:
18
Filtered by Token Holder (Lab10Collective)

Balance
2 MTK
0x596e8221a30bfe6e7eff67fee664a01c73ba3c56
Loading
[ Download CSV Export  ] 
Loading
[ Download CSV Export  ] 
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
Token

Compiler Version
v0.8.6+commit.11564f7e

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion, None license
/**
 *Submitted for verification at Etherscan.io on 2022-07-17
*/

//SPDX-License-Identifier: MIT

pragma solidity ^0.8.6;


contract Token {
    
    string public name;
    string public symbol;
    uint256 public decimals;
    uint256 public totalSupply;

    mapping(address => uint256) public balanceOf;
    mapping(address => mapping(address => uint256)) public allowance;

    event Transfer(address indexed _from, address indexed _to, uint256 _value);
    event Approval(address indexed _owner, address indexed _spender, uint256 _value);
    
    constructor(){
        name = "My Token";
        symbol = "MTK";
        decimals = 18;
        totalSupply = 1000000*(10**18);
        balanceOf[msg.sender] = totalSupply;
    }

    function transfer(address _to, uint256 _value) public returns(bool success){
        return transferFrom(msg.sender, _to, _value);
    }

    function transferFrom(address _from, address _to, uint256 _value) public returns (bool success){
        require(balanceOf[_from] >= _value, "Transfer From: No Enough Balance");
        balanceOf[_from] = balanceOf[_from] - _value;
        balanceOf[_to] = balanceOf[_to] + _value;
        emit Transfer(_from, _to, _value);
        return true;
    }

    function approve(address _spender, uint256 _value) public returns (bool success){
        require(_spender != address(0), "Approve: No Enough Balance");
        allowance[msg.sender][_spender] = _value;
        emit Approval(msg.sender, _spender, _value);
        return true;
    }

}

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_owner","type":"address"},{"indexed":true,"internalType":"address","name":"_spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"_value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_from","type":"address"},{"indexed":true,"internalType":"address","name":"_to","type":"address"},{"indexed":false,"internalType":"uint256","name":"_value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_spender","type":"address"},{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b506040518060400160405280600881526020017f4d7920546f6b656e000000000000000000000000000000000000000000000000815250600090805190602001906200005f92919062000113565b506040518060400160405280600381526020017f4d544b000000000000000000000000000000000000000000000000000000000081525060019080519060200190620000ad92919062000113565b50601260028190555069d3c21bcecceda1000000600381905550600354600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555062000228565b8280546200012190620001c3565b90600052602060002090601f01602090048101928262000145576000855562000191565b82601f106200016057805160ff191683800117855562000191565b8280016001018555821562000191579182015b828111156200019057825182559160200191906001019062000173565b5b509050620001a09190620001a4565b5090565b5b80821115620001bf576000816000905550600101620001a5565b5090565b60006002820490506001821680620001dc57607f821691505b60208210811415620001f357620001f2620001f9565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b610bc780620002386000396000f3fe608060405234801561001057600080fd5b50600436106100935760003560e01c8063313ce56711610066578063313ce5671461013457806370a082311461015257806395d89b4114610182578063a9059cbb146101a0578063dd62ed3e146101d057610093565b806306fdde0314610098578063095ea7b3146100b657806318160ddd146100e657806323b872dd14610104575b600080fd5b6100a0610200565b6040516100ad91906108cd565b60405180910390f35b6100d060048036038101906100cb91906107d5565b61028e565b6040516100dd91906108b2565b60405180910390f35b6100ee6103ef565b6040516100fb919061092f565b60405180910390f35b61011e60048036038101906101199190610782565b6103f5565b60405161012b91906108b2565b60405180910390f35b61013c610605565b604051610149919061092f565b60405180910390f35b61016c60048036038101906101679190610715565b61060b565b604051610179919061092f565b60405180910390f35b61018a610623565b60405161019791906108cd565b60405180910390f35b6101ba60048036038101906101b591906107d5565b6106b1565b6040516101c791906108b2565b60405180910390f35b6101ea60048036038101906101e59190610742565b6106c6565b6040516101f7919061092f565b60405180910390f35b6000805461020d90610a6b565b80601f016020809104026020016040519081016040528092919081815260200182805461023990610a6b565b80156102865780601f1061025b57610100808354040283529160200191610286565b820191906000526020600020905b81548152906001019060200180831161026957829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156102ff576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102f69061090f565b60405180910390fd5b81600560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040516103dd919061092f565b60405180910390a36001905092915050565b60035481565b600081600460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541015610479576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610470906108ef565b60405180910390fd5b81600460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546104c491906109bc565b600460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555081600460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546105529190610966565b600460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516105f2919061092f565b60405180910390a3600190509392505050565b60025481565b60046020528060005260406000206000915090505481565b6001805461063090610a6b565b80601f016020809104026020016040519081016040528092919081815260200182805461065c90610a6b565b80156106a95780601f1061067e576101008083540402835291602001916106a9565b820191906000526020600020905b81548152906001019060200180831161068c57829003601f168201915b505050505081565b60006106be3384846103f5565b905092915050565b6005602052816000526040600020602052806000526040600020600091509150505481565b6000813590506106fa81610b63565b92915050565b60008135905061070f81610b7a565b92915050565b60006020828403121561072b5761072a610afb565b5b6000610739848285016106eb565b91505092915050565b6000806040838503121561075957610758610afb565b5b6000610767858286016106eb565b9250506020610778858286016106eb565b9150509250929050565b60008060006060848603121561079b5761079a610afb565b5b60006107a9868287016106eb565b93505060206107ba868287016106eb565b92505060406107cb86828701610700565b9150509250925092565b600080604083850312156107ec576107eb610afb565b5b60006107fa858286016106eb565b925050602061080b85828601610700565b9150509250929050565b61081e81610a02565b82525050565b600061082f8261094a565b6108398185610955565b9350610849818560208601610a38565b61085281610b00565b840191505092915050565b600061086a602083610955565b915061087582610b11565b602082019050919050565b600061088d601a83610955565b915061089882610b3a565b602082019050919050565b6108ac81610a2e565b82525050565b60006020820190506108c76000830184610815565b92915050565b600060208201905081810360008301526108e78184610824565b905092915050565b600060208201905081810360008301526109088161085d565b9050919050565b6000602082019050818103600083015261092881610880565b9050919050565b600060208201905061094460008301846108a3565b92915050565b600081519050919050565b600082825260208201905092915050565b600061097182610a2e565b915061097c83610a2e565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156109b1576109b0610a9d565b5b828201905092915050565b60006109c782610a2e565b91506109d283610a2e565b9250828210156109e5576109e4610a9d565b5b828203905092915050565b60006109fb82610a0e565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60005b83811015610a56578082015181840152602081019050610a3b565b83811115610a65576000848401525b50505050565b60006002820490506001821680610a8357607f821691505b60208210811415610a9757610a96610acc565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600080fd5b6000601f19601f8301169050919050565b7f5472616e736665722046726f6d3a204e6f20456e6f7567682042616c616e6365600082015250565b7f417070726f76653a204e6f20456e6f7567682042616c616e6365000000000000600082015250565b610b6c816109f0565b8114610b7757600080fd5b50565b610b8381610a2e565b8114610b8e57600080fd5b5056fea264697066735822122025d33f164680445d62d0495d888f3c90dd4fa8a0d7a974a45a16f502540a68eb64736f6c63430008060033

Deployed ByteCode Sourcemap

63:1439:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;91:18;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;1210:287;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;173:26;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;845:357;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;143:23;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;208:44;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;116:20;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;699:138;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;259:64;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;91:18;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;1210:287::-;1277:12;1329:1;1309:22;;:8;:22;;;;1301:61;;;;;;;;;;;;:::i;:::-;;;;;;;;;1407:6;1373:9;:21;1383:10;1373:21;;;;;;;;;;;;;;;:31;1395:8;1373:31;;;;;;;;;;;;;;;:40;;;;1450:8;1429:38;;1438:10;1429:38;;;1460:6;1429:38;;;;;;:::i;:::-;;;;;;;;1485:4;1478:11;;1210:287;;;;:::o;173:26::-;;;;:::o;845:357::-;927:12;979:6;959:9;:16;969:5;959:16;;;;;;;;;;;;;;;;:26;;951:71;;;;;;;;;;;;:::i;:::-;;;;;;;;;1071:6;1052:9;:16;1062:5;1052:16;;;;;;;;;;;;;;;;:25;;;;:::i;:::-;1033:9;:16;1043:5;1033:16;;;;;;;;;;;;;;;:44;;;;1122:6;1105:9;:14;1115:3;1105:14;;;;;;;;;;;;;;;;:23;;;;:::i;:::-;1088:9;:14;1098:3;1088:14;;;;;;;;;;;;;;;:40;;;;1160:3;1144:28;;1153:5;1144:28;;;1165:6;1144:28;;;;;;:::i;:::-;;;;;;;;1190:4;1183:11;;845:357;;;;;:::o;143:23::-;;;;:::o;208:44::-;;;;;;;;;;;;;;;;;:::o;116:20::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;699:138::-;761:12;792:37;805:10;817:3;822:6;792:12;:37::i;:::-;785:44;;699:138;;;;:::o;259:64::-;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;7:139:1:-;53:5;91:6;78:20;69:29;;107:33;134:5;107:33;:::i;:::-;59:87;;;;:::o;152:139::-;198:5;236:6;223:20;214:29;;252:33;279:5;252:33;:::i;:::-;204:87;;;;:::o;297:329::-;356:6;405:2;393:9;384:7;380:23;376:32;373:2;;;411:79;;:::i;:::-;373:2;531:1;556:53;601:7;592:6;581:9;577:22;556:53;:::i;:::-;546:63;;502:117;363:263;;;;:::o;632:474::-;700:6;708;757:2;745:9;736:7;732:23;728:32;725:2;;;763:79;;:::i;:::-;725:2;883:1;908:53;953:7;944:6;933:9;929:22;908:53;:::i;:::-;898:63;;854:117;1010:2;1036:53;1081:7;1072:6;1061:9;1057:22;1036:53;:::i;:::-;1026:63;;981:118;715:391;;;;;:::o;1112:619::-;1189:6;1197;1205;1254:2;1242:9;1233:7;1229:23;1225:32;1222:2;;;1260:79;;:::i;:::-;1222:2;1380:1;1405:53;1450:7;1441:6;1430:9;1426:22;1405:53;:::i;:::-;1395:63;;1351:117;1507:2;1533:53;1578:7;1569:6;1558:9;1554:22;1533:53;:::i;:::-;1523:63;;1478:118;1635:2;1661:53;1706:7;1697:6;1686:9;1682:22;1661:53;:::i;:::-;1651:63;;1606:118;1212:519;;;;;:::o;1737:474::-;1805:6;1813;1862:2;1850:9;1841:7;1837:23;1833:32;1830:2;;;1868:79;;:::i;:::-;1830:2;1988:1;2013:53;2058:7;2049:6;2038:9;2034:22;2013:53;:::i;:::-;2003:63;;1959:117;2115:2;2141:53;2186:7;2177:6;2166:9;2162:22;2141:53;:::i;:::-;2131:63;;2086:118;1820:391;;;;;:::o;2217:109::-;2298:21;2313:5;2298:21;:::i;:::-;2293:3;2286:34;2276:50;;:::o;2332:364::-;2420:3;2448:39;2481:5;2448:39;:::i;:::-;2503:71;2567:6;2562:3;2503:71;:::i;:::-;2496:78;;2583:52;2628:6;2623:3;2616:4;2609:5;2605:16;2583:52;:::i;:::-;2660:29;2682:6;2660:29;:::i;:::-;2655:3;2651:39;2644:46;;2424:272;;;;;:::o;2702:366::-;2844:3;2865:67;2929:2;2924:3;2865:67;:::i;:::-;2858:74;;2941:93;3030:3;2941:93;:::i;:::-;3059:2;3054:3;3050:12;3043:19;;2848:220;;;:::o;3074:366::-;3216:3;3237:67;3301:2;3296:3;3237:67;:::i;:::-;3230:74;;3313:93;3402:3;3313:93;:::i;:::-;3431:2;3426:3;3422:12;3415:19;;3220:220;;;:::o;3446:118::-;3533:24;3551:5;3533:24;:::i;:::-;3528:3;3521:37;3511:53;;:::o;3570:210::-;3657:4;3695:2;3684:9;3680:18;3672:26;;3708:65;3770:1;3759:9;3755:17;3746:6;3708:65;:::i;:::-;3662:118;;;;:::o;3786:313::-;3899:4;3937:2;3926:9;3922:18;3914:26;;3986:9;3980:4;3976:20;3972:1;3961:9;3957:17;3950:47;4014:78;4087:4;4078:6;4014:78;:::i;:::-;4006:86;;3904:195;;;;:::o;4105:419::-;4271:4;4309:2;4298:9;4294:18;4286:26;;4358:9;4352:4;4348:20;4344:1;4333:9;4329:17;4322:47;4386:131;4512:4;4386:131;:::i;:::-;4378:139;;4276:248;;;:::o;4530:419::-;4696:4;4734:2;4723:9;4719:18;4711:26;;4783:9;4777:4;4773:20;4769:1;4758:9;4754:17;4747:47;4811:131;4937:4;4811:131;:::i;:::-;4803:139;;4701:248;;;:::o;4955:222::-;5048:4;5086:2;5075:9;5071:18;5063:26;;5099:71;5167:1;5156:9;5152:17;5143:6;5099:71;:::i;:::-;5053:124;;;;:::o;5264:99::-;5316:6;5350:5;5344:12;5334:22;;5323:40;;;:::o;5369:169::-;5453:11;5487:6;5482:3;5475:19;5527:4;5522:3;5518:14;5503:29;;5465:73;;;;:::o;5544:305::-;5584:3;5603:20;5621:1;5603:20;:::i;:::-;5598:25;;5637:20;5655:1;5637:20;:::i;:::-;5632:25;;5791:1;5723:66;5719:74;5716:1;5713:81;5710:2;;;5797:18;;:::i;:::-;5710:2;5841:1;5838;5834:9;5827:16;;5588:261;;;;:::o;5855:191::-;5895:4;5915:20;5933:1;5915:20;:::i;:::-;5910:25;;5949:20;5967:1;5949:20;:::i;:::-;5944:25;;5988:1;5985;5982:8;5979:2;;;5993:18;;:::i;:::-;5979:2;6038:1;6035;6031:9;6023:17;;5900:146;;;;:::o;6052:96::-;6089:7;6118:24;6136:5;6118:24;:::i;:::-;6107:35;;6097:51;;;:::o;6154:90::-;6188:7;6231:5;6224:13;6217:21;6206:32;;6196:48;;;:::o;6250:126::-;6287:7;6327:42;6320:5;6316:54;6305:65;;6295:81;;;:::o;6382:77::-;6419:7;6448:5;6437:16;;6427:32;;;:::o;6465:307::-;6533:1;6543:113;6557:6;6554:1;6551:13;6543:113;;;6642:1;6637:3;6633:11;6627:18;6623:1;6618:3;6614:11;6607:39;6579:2;6576:1;6572:10;6567:15;;6543:113;;;6674:6;6671:1;6668:13;6665:2;;;6754:1;6745:6;6740:3;6736:16;6729:27;6665:2;6514:258;;;;:::o;6778:320::-;6822:6;6859:1;6853:4;6849:12;6839:22;;6906:1;6900:4;6896:12;6927:18;6917:2;;6983:4;6975:6;6971:17;6961:27;;6917:2;7045;7037:6;7034:14;7014:18;7011:38;7008:2;;;7064:18;;:::i;:::-;7008:2;6829:269;;;;:::o;7104:180::-;7152:77;7149:1;7142:88;7249:4;7246:1;7239:15;7273:4;7270:1;7263:15;7290:180;7338:77;7335:1;7328:88;7435:4;7432:1;7425:15;7459:4;7456:1;7449:15;7599:117;7708:1;7705;7698:12;7722:102;7763:6;7814:2;7810:7;7805:2;7798:5;7794:14;7790:28;7780:38;;7770:54;;;:::o;7830:182::-;7970:34;7966:1;7958:6;7954:14;7947:58;7936:76;:::o;8018:176::-;8158:28;8154:1;8146:6;8142:14;8135:52;8124:70;:::o;8200:122::-;8273:24;8291:5;8273:24;:::i;:::-;8266:5;8263:35;8253:2;;8312:1;8309;8302:12;8253:2;8243:79;:::o;8328:122::-;8401:24;8419:5;8401:24;:::i;:::-;8394:5;8391:35;8381:2;;8440:1;8437;8430:12;8381:2;8371:79;:::o

Swarm Source

ipfs://25d33f164680445d62d0495d888f3c90dd4fa8a0d7a974a45a16f502540a68eb

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.