ETH Price: $3,513.19 (-5.42%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Approve207716412024-09-17 16:52:35111 days ago1726591955IN
0xD57beBFc...646ED3eDd
0 ETH0.0007222429.86710611
Approve207715842024-09-17 16:40:59111 days ago1726591259IN
0xD57beBFc...646ED3eDd
0 ETH0.0011395324.65145007
Approve207660212024-09-16 22:00:23112 days ago1726524023IN
0xD57beBFc...646ED3eDd
0 ETH0.000080573.06618859
Approve207660072024-09-16 21:57:35112 days ago1726523855IN
0xD57beBFc...646ED3eDd
0 ETH0.000161813.50421542
Transfer207659072024-09-16 21:37:35112 days ago1726522655IN
0xD57beBFc...646ED3eDd
0 ETH0.000181133.86036948
Approve207657112024-09-16 20:58:23112 days ago1726520303IN
0xD57beBFc...646ED3eDd
0 ETH0.000206374.47028804
Approve207617482024-09-16 7:38:59113 days ago1726472339IN
0xD57beBFc...646ED3eDd
0 ETH0.000337867.27120238
Approve207598032024-09-16 1:07:59113 days ago1726448879IN
0xD57beBFc...646ED3eDd
0 ETH0.000106792.29829545
Approve207597932024-09-16 1:05:59113 days ago1726448759IN
0xD57beBFc...646ED3eDd
0 ETH0.000214994.62702166
Approve207597202024-09-16 0:51:23113 days ago1726447883IN
0xD57beBFc...646ED3eDd
0 ETH0.000071061.53806119

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Token

Compiler Version
v0.8.2+commit.661d1103

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license
/**
 *Submitted for verification at Etherscan.io on 2024-09-16
*/

pragma solidity ^0.8.2;

contract Token {
    mapping(address => uint) public balances;
    mapping(address => mapping(address => uint)) public allowance;
    uint public totalSupply = 1500000000000 * 10 ** 18;
    string public name = "Hamster Kombat";
    string public symbol = "HMSTR";
    uint public decimals = 18;
    
    event Transfer(address indexed from, address indexed to, uint value);
    event Approval(address indexed owner, address indexed spender, uint value);
    
    constructor() {
        balances[msg.sender] = totalSupply;
    }
    
    function balanceOf(address owner) public returns(uint) {
        return balances[owner];
    }
    
    function transfer(address to, uint value) public returns(bool) {
        require(balanceOf(msg.sender) >= value, 'balance too low');
        balances[to] += value;
        balances[msg.sender] -= value;
       emit Transfer(msg.sender, to, value);
        return true;
    }
    
    function transferFrom(address from, address to, uint value) public returns(bool) {
        require(balanceOf(from) >= value, 'balance too low');
        require(allowance[from][msg.sender] >= value, 'allowance too low');
        balances[to] += value;
        balances[from] -= value;
        emit Transfer(from, to, value);
        return true;   
    }
    
    function approve(address spender, uint value) public returns (bool) {
        allowance[msg.sender][spender] = value;
        emit Approval(msg.sender, spender, value);
        return true;   
    }
}

Contract Security Audit

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":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"balances","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":"","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":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}]

6c12eec2eb3869af64df6000000060025560c0604052600e60808190526d12185b5cdd195c8812dbdb58985d60921b60a09081526100409160039190610098565b50604080518082019091526005808252642426a9aa2960d91b602090920191825261006d91600491610098565b50601260055534801561007f57600080fd5b506002543360009081526020819052604090205561016c565b8280546100a490610131565b90600052602060002090601f0160209004810192826100c6576000855561010c565b82601f106100df57805160ff191683800117855561010c565b8280016001018555821561010c579182015b8281111561010c5782518255916020019190600101906100f1565b5061011892915061011c565b5090565b5b80821115610118576000815560010161011d565b60028104600182168061014557607f821691505b6020821081141561016657634e487b7160e01b600052602260045260246000fd5b50919050565b6106d28061017b6000396000f3fe608060405234801561001057600080fd5b506004361061009e5760003560e01c8063313ce56711610066578063313ce5671461012e57806370a082311461013757806395d89b411461014a578063a9059cbb14610152578063dd62ed3e146101655761009e565b806306fdde03146100a3578063095ea7b3146100c157806318160ddd146100e457806323b872dd146100fb57806327e235e31461010e575b600080fd5b6100ab610190565b6040516100b891906105c9565b60405180910390f35b6100d46100cf3660046105a0565b61021e565b60405190151581526020016100b8565b6100ed60025481565b6040519081526020016100b8565b6100d4610109366004610565565b61028a565b6100ed61011c366004610512565b60006020819052908152604090205481565b6100ed60055481565b6100ed610145366004610512565b6103f5565b6100ab610414565b6100d46101603660046105a0565b610421565b6100ed610173366004610533565b600160209081526000928352604080842090915290825290205481565b6003805461019d9061064b565b80601f01602080910402602001604051908101604052809291908181526020018280546101c99061064b565b80156102165780601f106101eb57610100808354040283529160200191610216565b820191906000526020600020905b8154815290600101906020018083116101f957829003601f168201915b505050505081565b3360008181526001602090815260408083206001600160a01b038716808552925280832085905551919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925906102799086815260200190565b60405180910390a350600192915050565b600081610296856103f5565b10156102db5760405162461bcd60e51b815260206004820152600f60248201526e62616c616e636520746f6f206c6f7760881b60448201526064015b60405180910390fd5b6001600160a01b03841660009081526001602090815260408083203384529091529020548211156103425760405162461bcd60e51b8152602060048201526011602482015270616c6c6f77616e636520746f6f206c6f7760781b60448201526064016102d2565b6001600160a01b0383166000908152602081905260408120805484929061036a90849061061c565b90915550506001600160a01b03841660009081526020819052604081208054849290610397908490610634565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516103e391815260200190565b60405180910390a35060019392505050565b6001600160a01b0381166000908152602081905260409020545b919050565b6004805461019d9061064b565b60008161042d336103f5565b101561046d5760405162461bcd60e51b815260206004820152600f60248201526e62616c616e636520746f6f206c6f7760881b60448201526064016102d2565b6001600160a01b0383166000908152602081905260408120805484929061049590849061061c565b909155505033600090815260208190526040812080548492906104b9908490610634565b90915550506040518281526001600160a01b0384169033907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001610279565b80356001600160a01b038116811461040f57600080fd5b600060208284031215610523578081fd5b61052c826104fb565b9392505050565b60008060408385031215610545578081fd5b61054e836104fb565b915061055c602084016104fb565b90509250929050565b600080600060608486031215610579578081fd5b610582846104fb565b9250610590602085016104fb565b9150604084013590509250925092565b600080604083850312156105b2578182fd5b6105bb836104fb565b946020939093013593505050565b6000602080835283518082850152825b818110156105f5578581018301518582016040015282016105d9565b818111156106065783604083870101525b50601f01601f1916929092016040019392505050565b6000821982111561062f5761062f610686565b500190565b60008282101561064657610646610686565b500390565b60028104600182168061065f57607f821691505b6020821081141561068057634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fdfea264697066735822122090503db373c21ea16e04b225ec583f3f733b5d9e511bb4cad3b8b52919daf14764736f6c63430008020033

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061009e5760003560e01c8063313ce56711610066578063313ce5671461012e57806370a082311461013757806395d89b411461014a578063a9059cbb14610152578063dd62ed3e146101655761009e565b806306fdde03146100a3578063095ea7b3146100c157806318160ddd146100e457806323b872dd146100fb57806327e235e31461010e575b600080fd5b6100ab610190565b6040516100b891906105c9565b60405180910390f35b6100d46100cf3660046105a0565b61021e565b60405190151581526020016100b8565b6100ed60025481565b6040519081526020016100b8565b6100d4610109366004610565565b61028a565b6100ed61011c366004610512565b60006020819052908152604090205481565b6100ed60055481565b6100ed610145366004610512565b6103f5565b6100ab610414565b6100d46101603660046105a0565b610421565b6100ed610173366004610533565b600160209081526000928352604080842090915290825290205481565b6003805461019d9061064b565b80601f01602080910402602001604051908101604052809291908181526020018280546101c99061064b565b80156102165780601f106101eb57610100808354040283529160200191610216565b820191906000526020600020905b8154815290600101906020018083116101f957829003601f168201915b505050505081565b3360008181526001602090815260408083206001600160a01b038716808552925280832085905551919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925906102799086815260200190565b60405180910390a350600192915050565b600081610296856103f5565b10156102db5760405162461bcd60e51b815260206004820152600f60248201526e62616c616e636520746f6f206c6f7760881b60448201526064015b60405180910390fd5b6001600160a01b03841660009081526001602090815260408083203384529091529020548211156103425760405162461bcd60e51b8152602060048201526011602482015270616c6c6f77616e636520746f6f206c6f7760781b60448201526064016102d2565b6001600160a01b0383166000908152602081905260408120805484929061036a90849061061c565b90915550506001600160a01b03841660009081526020819052604081208054849290610397908490610634565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516103e391815260200190565b60405180910390a35060019392505050565b6001600160a01b0381166000908152602081905260409020545b919050565b6004805461019d9061064b565b60008161042d336103f5565b101561046d5760405162461bcd60e51b815260206004820152600f60248201526e62616c616e636520746f6f206c6f7760881b60448201526064016102d2565b6001600160a01b0383166000908152602081905260408120805484929061049590849061061c565b909155505033600090815260208190526040812080548492906104b9908490610634565b90915550506040518281526001600160a01b0384169033907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001610279565b80356001600160a01b038116811461040f57600080fd5b600060208284031215610523578081fd5b61052c826104fb565b9392505050565b60008060408385031215610545578081fd5b61054e836104fb565b915061055c602084016104fb565b90509250929050565b600080600060608486031215610579578081fd5b610582846104fb565b9250610590602085016104fb565b9150604084013590509250925092565b600080604083850312156105b2578182fd5b6105bb836104fb565b946020939093013593505050565b6000602080835283518082850152825b818110156105f5578581018301518582016040015282016105d9565b818111156106065783604083870101525b50601f01601f1916929092016040019392505050565b6000821982111561062f5761062f610686565b500190565b60008282101561064657610646610686565b500390565b60028104600182168061065f57607f821691505b6020821081141561068057634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fdfea264697066735822122090503db373c21ea16e04b225ec583f3f733b5d9e511bb4cad3b8b52919daf14764736f6c63430008020033

Deployed Bytecode Sourcemap

27:1532:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;221:37;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;1354:202;;;;;;:::i;:::-;;:::i;:::-;;;1445:14:1;;1438:22;1420:41;;1408:2;1393:18;1354:202:0;1375:92:1;164:50:0;;;;;;;;;2916:25:1;;;2904:2;2889:18;164:50:0;2871:76:1;981:361:0;;;;;;:::i;:::-;;:::i;49:40::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;302:25;;;;;;581:96;;;;;;:::i;:::-;;:::i;265:30::-;;;:::i;689:280::-;;;;;;:::i;:::-;;:::i;96:61::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;221:37;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;1354:202::-;1443:10;1416:4;1433:21;;;:9;:21;;;;;;;;-1:-1:-1;;;;;1433:30:0;;;;;;;;;;:38;;;1487:36;1416:4;;1433:30;;1487:36;;;;1466:5;2916:25:1;;2904:2;2889:18;;2871:76;1487:36:0;;;;;;;;-1:-1:-1;1541:4:0;1354:202;;;;:::o;981:361::-;1056:4;1100:5;1081:15;1091:4;1081:9;:15::i;:::-;:24;;1073:52;;;;-1:-1:-1;;;1073:52:0;;2282:2:1;1073:52:0;;;2264:21:1;2321:2;2301:18;;;2294:30;-1:-1:-1;;;2340:18:1;;;2333:45;2395:18;;1073:52:0;;;;;;;;;-1:-1:-1;;;;;1144:15:0;;;;;;:9;:15;;;;;;;;1160:10;1144:27;;;;;;;;:36;-1:-1:-1;1144:36:0;1136:66;;;;-1:-1:-1;;;1136:66:0;;2626:2:1;1136:66:0;;;2608:21:1;2665:2;2645:18;;;2638:30;-1:-1:-1;;;2684:18:1;;;2677:47;2741:18;;1136:66:0;2598:167:1;1136:66:0;-1:-1:-1;;;;;1213:12:0;;:8;:12;;;;;;;;;;:21;;1229:5;;1213:8;:21;;1229:5;;1213:21;:::i;:::-;;;;-1:-1:-1;;;;;;;1245:14:0;;:8;:14;;;;;;;;;;:23;;1263:5;;1245:8;:23;;1263:5;;1245:23;:::i;:::-;;;;;;;;1299:2;-1:-1:-1;;;;;1284:25:0;1293:4;-1:-1:-1;;;;;1284:25:0;;1303:5;1284:25;;;;2916::1;;2904:2;2889:18;;2871:76;1284:25:0;;;;;;;;-1:-1:-1;1327:4:0;981:361;;;;;:::o;581:96::-;-1:-1:-1;;;;;654:15:0;;630:4;654:15;;;;;;;;;;;581:96;;;;:::o;265:30::-;;;;;;;:::i;689:280::-;746:4;796:5;771:21;781:10;771:9;:21::i;:::-;:30;;763:58;;;;-1:-1:-1;;;763:58:0;;2282:2:1;763:58:0;;;2264:21:1;2321:2;2301:18;;;2294:30;-1:-1:-1;;;2340:18:1;;;2333:45;2395:18;;763:58:0;2254:165:1;763:58:0;-1:-1:-1;;;;;832:12:0;;:8;:12;;;;;;;;;;:21;;848:5;;832:8;:21;;848:5;;832:21;:::i;:::-;;;;-1:-1:-1;;873:10:0;864:8;:20;;;;;;;;;;:29;;888:5;;864:8;:29;;888:5;;864:29;:::i;:::-;;;;-1:-1:-1;;908:31:0;;2916:25:1;;;-1:-1:-1;;;;;908:31:0;;;917:10;;908:31;;2904:2:1;2889:18;908:31:0;2871:76:1;14:173;82:20;;-1:-1:-1;;;;;131:31:1;;121:42;;111:2;;177:1;174;167:12;192:196;;304:2;292:9;283:7;279:23;275:32;272:2;;;325:6;317;310:22;272:2;353:29;372:9;353:29;:::i;:::-;343:39;262:126;-1:-1:-1;;;262:126:1:o;393:270::-;;;522:2;510:9;501:7;497:23;493:32;490:2;;;543:6;535;528:22;490:2;571:29;590:9;571:29;:::i;:::-;561:39;;619:38;653:2;642:9;638:18;619:38;:::i;:::-;609:48;;480:183;;;;;:::o;668:338::-;;;;814:2;802:9;793:7;789:23;785:32;782:2;;;835:6;827;820:22;782:2;863:29;882:9;863:29;:::i;:::-;853:39;;911:38;945:2;934:9;930:18;911:38;:::i;:::-;901:48;;996:2;985:9;981:18;968:32;958:42;;772:234;;;;;:::o;1011:264::-;;;1140:2;1128:9;1119:7;1115:23;1111:32;1108:2;;;1161:6;1153;1146:22;1108:2;1189:29;1208:9;1189:29;:::i;:::-;1179:39;1265:2;1250:18;;;;1237:32;;-1:-1:-1;;;1098:177:1:o;1472:603::-;;1613:2;1642;1631:9;1624:21;1674:6;1668:13;1717:6;1712:2;1701:9;1697:18;1690:34;1742:4;1755:140;1769:6;1766:1;1763:13;1755:140;;;1864:14;;;1860:23;;1854:30;1830:17;;;1849:2;1826:26;1819:66;1784:10;;1755:140;;;1913:6;1910:1;1907:13;1904:2;;;1983:4;1978:2;1969:6;1958:9;1954:22;1950:31;1943:45;1904:2;-1:-1:-1;2059:2:1;2038:15;-1:-1:-1;;2034:29:1;2019:45;;;;2066:2;2015:54;;1593:482;-1:-1:-1;;;1593:482:1:o;2952:128::-;;3023:1;3019:6;3016:1;3013:13;3010:2;;;3029:18;;:::i;:::-;-1:-1:-1;3065:9:1;;3000:80::o;3085:125::-;;3153:1;3150;3147:8;3144:2;;;3158:18;;:::i;:::-;-1:-1:-1;3195:9:1;;3134:76::o;3215:380::-;3300:1;3290:12;;3347:1;3337:12;;;3358:2;;3412:4;3404:6;3400:17;3390:27;;3358:2;3465;3457:6;3454:14;3434:18;3431:38;3428:2;;;3511:10;3506:3;3502:20;3499:1;3492:31;3546:4;3543:1;3536:15;3574:4;3571:1;3564:15;3428:2;;3270:325;;;:::o;3600:127::-;3661:10;3656:3;3652:20;3649:1;3642:31;3692:4;3689:1;3682:15;3716:4;3713:1;3706:15

Swarm Source

ipfs://90503db373c21ea16e04b225ec583f3f733b5d9e511bb4cad3b8b52919daf147

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  ]

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.