ERC-20
Overview
Max Total Supply
1,500,000,000,000 HMSTR
Holders
18
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
346,170,234.268565894674534676 HMSTRValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0xe4B6de70...154f0315b The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
Token
Compiler Version
v0.8.2+commit.661d1103
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2024-09-13 */ 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 = "HMSTR"; 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
- No Contract Security Audit Submitted- Submit Audit Here
[{"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"}]
Contract Creation Code
6c12eec2eb3869af64df6000000060025560c060405260056080819052642426a9aa2960d91b60a0908152610037916003919061008f565b50604080518082019091526005808252642426a9aa2960d91b60209092019182526100649160049161008f565b50601260055534801561007657600080fd5b5060025433600090815260208190526040902055610163565b82805461009b90610128565b90600052602060002090601f0160209004810192826100bd5760008555610103565b82601f106100d657805160ff1916838001178555610103565b82800160010185558215610103579182015b828111156101035782518255916020019190600101906100e8565b5061010f929150610113565b5090565b5b8082111561010f5760008155600101610114565b60028104600182168061013c57607f821691505b6020821081141561015d57634e487b7160e01b600052602260045260246000fd5b50919050565b6106d2806101726000396000f3fe608060405234801561001057600080fd5b506004361061009e5760003560e01c8063313ce56711610066578063313ce5671461012e57806370a082311461013757806395d89b411461014a578063a9059cbb14610152578063dd62ed3e146101655761009e565b806306fdde03146100a3578063095ea7b3146100c157806318160ddd146100e457806323b872dd146100fb57806327e235e31461010e575b600080fd5b6100ab610190565b6040516100b891906105c9565b60405180910390f35b6100d46100cf3660046105a0565b61021e565b60405190151581526020016100b8565b6100ed60025481565b6040519081526020016100b8565b6100d4610109366004610565565b61028a565b6100ed61011c366004610512565b60006020819052908152604090205481565b6100ed60055481565b6100ed610145366004610512565b6103f5565b6100ab610414565b6100d46101603660046105a0565b610421565b6100ed610173366004610533565b600160209081526000928352604080842090915290825290205481565b6003805461019d9061064b565b80601f01602080910402602001604051908101604052809291908181526020018280546101c99061064b565b80156102165780601f106101eb57610100808354040283529160200191610216565b820191906000526020600020905b8154815290600101906020018083116101f957829003601f168201915b505050505081565b3360008181526001602090815260408083206001600160a01b038716808552925280832085905551919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925906102799086815260200190565b60405180910390a350600192915050565b600081610296856103f5565b10156102db5760405162461bcd60e51b815260206004820152600f60248201526e62616c616e636520746f6f206c6f7760881b60448201526064015b60405180910390fd5b6001600160a01b03841660009081526001602090815260408083203384529091529020548211156103425760405162461bcd60e51b8152602060048201526011602482015270616c6c6f77616e636520746f6f206c6f7760781b60448201526064016102d2565b6001600160a01b0383166000908152602081905260408120805484929061036a90849061061c565b90915550506001600160a01b03841660009081526020819052604081208054849290610397908490610634565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516103e391815260200190565b60405180910390a35060019392505050565b6001600160a01b0381166000908152602081905260409020545b919050565b6004805461019d9061064b565b60008161042d336103f5565b101561046d5760405162461bcd60e51b815260206004820152600f60248201526e62616c616e636520746f6f206c6f7760881b60448201526064016102d2565b6001600160a01b0383166000908152602081905260408120805484929061049590849061061c565b909155505033600090815260208190526040812080548492906104b9908490610634565b90915550506040518281526001600160a01b0384169033907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001610279565b80356001600160a01b038116811461040f57600080fd5b600060208284031215610523578081fd5b61052c826104fb565b9392505050565b60008060408385031215610545578081fd5b61054e836104fb565b915061055c602084016104fb565b90509250929050565b600080600060608486031215610579578081fd5b610582846104fb565b9250610590602085016104fb565b9150604084013590509250925092565b600080604083850312156105b2578182fd5b6105bb836104fb565b946020939093013593505050565b6000602080835283518082850152825b818110156105f5578581018301518582016040015282016105d9565b818111156106065783604083870101525b50601f01601f1916929092016040019392505050565b6000821982111561062f5761062f610686565b500190565b60008282101561064657610646610686565b500390565b60028104600182168061065f57607f821691505b6020821081141561068057634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fdfea2646970667358221220e4b2c7cab073211eac63139123f1b01830ac90b6b1de82c4a4b7066d5b8ccd2064736f6c63430008020033
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061009e5760003560e01c8063313ce56711610066578063313ce5671461012e57806370a082311461013757806395d89b411461014a578063a9059cbb14610152578063dd62ed3e146101655761009e565b806306fdde03146100a3578063095ea7b3146100c157806318160ddd146100e457806323b872dd146100fb57806327e235e31461010e575b600080fd5b6100ab610190565b6040516100b891906105c9565b60405180910390f35b6100d46100cf3660046105a0565b61021e565b60405190151581526020016100b8565b6100ed60025481565b6040519081526020016100b8565b6100d4610109366004610565565b61028a565b6100ed61011c366004610512565b60006020819052908152604090205481565b6100ed60055481565b6100ed610145366004610512565b6103f5565b6100ab610414565b6100d46101603660046105a0565b610421565b6100ed610173366004610533565b600160209081526000928352604080842090915290825290205481565b6003805461019d9061064b565b80601f01602080910402602001604051908101604052809291908181526020018280546101c99061064b565b80156102165780601f106101eb57610100808354040283529160200191610216565b820191906000526020600020905b8154815290600101906020018083116101f957829003601f168201915b505050505081565b3360008181526001602090815260408083206001600160a01b038716808552925280832085905551919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925906102799086815260200190565b60405180910390a350600192915050565b600081610296856103f5565b10156102db5760405162461bcd60e51b815260206004820152600f60248201526e62616c616e636520746f6f206c6f7760881b60448201526064015b60405180910390fd5b6001600160a01b03841660009081526001602090815260408083203384529091529020548211156103425760405162461bcd60e51b8152602060048201526011602482015270616c6c6f77616e636520746f6f206c6f7760781b60448201526064016102d2565b6001600160a01b0383166000908152602081905260408120805484929061036a90849061061c565b90915550506001600160a01b03841660009081526020819052604081208054849290610397908490610634565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516103e391815260200190565b60405180910390a35060019392505050565b6001600160a01b0381166000908152602081905260409020545b919050565b6004805461019d9061064b565b60008161042d336103f5565b101561046d5760405162461bcd60e51b815260206004820152600f60248201526e62616c616e636520746f6f206c6f7760881b60448201526064016102d2565b6001600160a01b0383166000908152602081905260408120805484929061049590849061061c565b909155505033600090815260208190526040812080548492906104b9908490610634565b90915550506040518281526001600160a01b0384169033907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001610279565b80356001600160a01b038116811461040f57600080fd5b600060208284031215610523578081fd5b61052c826104fb565b9392505050565b60008060408385031215610545578081fd5b61054e836104fb565b915061055c602084016104fb565b90509250929050565b600080600060608486031215610579578081fd5b610582846104fb565b9250610590602085016104fb565b9150604084013590509250925092565b600080604083850312156105b2578182fd5b6105bb836104fb565b946020939093013593505050565b6000602080835283518082850152825b818110156105f5578581018301518582016040015282016105d9565b818111156106065783604083870101525b50601f01601f1916929092016040019392505050565b6000821982111561062f5761062f610686565b500190565b60008282101561064657610646610686565b500390565b60028104600182168061065f57607f821691505b6020821081141561068057634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fdfea2646970667358221220e4b2c7cab073211eac63139123f1b01830ac90b6b1de82c4a4b7066d5b8ccd2064736f6c63430008020033
Deployed Bytecode Sourcemap
27:1523:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;221:28;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;1345:202;;;;;;:::i;:::-;;:::i;:::-;;;1445:14:1;;1438:22;1420:41;;1408:2;1393:18;1345:202:0;1375:92:1;164:50:0;;;;;;;;;2916:25:1;;;2904:2;2889:18;164:50:0;2871:76:1;972:361:0;;;;;;:::i;:::-;;:::i;49:40::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;293:25;;;;;;572:96;;;;;;:::i;:::-;;:::i;256:30::-;;;:::i;680:280::-;;;;;;:::i;:::-;;:::i;96:61::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;221:28;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;1345:202::-;1434:10;1407:4;1424:21;;;:9;:21;;;;;;;;-1:-1:-1;;;;;1424:30:0;;;;;;;;;;:38;;;1478:36;1407:4;;1424:30;;1478:36;;;;1457:5;2916:25:1;;2904:2;2889:18;;2871:76;1478:36:0;;;;;;;;-1:-1:-1;1532:4:0;1345:202;;;;:::o;972:361::-;1047:4;1091:5;1072:15;1082:4;1072:9;:15::i;:::-;:24;;1064:52;;;;-1:-1:-1;;;1064:52:0;;2282:2:1;1064:52:0;;;2264:21:1;2321:2;2301:18;;;2294:30;-1:-1:-1;;;2340:18:1;;;2333:45;2395:18;;1064:52:0;;;;;;;;;-1:-1:-1;;;;;1135:15:0;;;;;;:9;:15;;;;;;;;1151:10;1135:27;;;;;;;;:36;-1:-1:-1;1135:36:0;1127:66;;;;-1:-1:-1;;;1127:66:0;;2626:2:1;1127:66:0;;;2608:21:1;2665:2;2645:18;;;2638:30;-1:-1:-1;;;2684:18:1;;;2677:47;2741:18;;1127:66:0;2598:167:1;1127:66:0;-1:-1:-1;;;;;1204:12:0;;:8;:12;;;;;;;;;;:21;;1220:5;;1204:8;:21;;1220:5;;1204:21;:::i;:::-;;;;-1:-1:-1;;;;;;;1236:14:0;;:8;:14;;;;;;;;;;:23;;1254:5;;1236:8;:23;;1254:5;;1236:23;:::i;:::-;;;;;;;;1290:2;-1:-1:-1;;;;;1275:25:0;1284:4;-1:-1:-1;;;;;1275:25:0;;1294:5;1275:25;;;;2916::1;;2904:2;2889:18;;2871:76;1275:25:0;;;;;;;;-1:-1:-1;1318:4:0;972:361;;;;;:::o;572:96::-;-1:-1:-1;;;;;645:15:0;;621:4;645:15;;;;;;;;;;;572:96;;;;:::o;256:30::-;;;;;;;:::i;680:280::-;737:4;787:5;762:21;772:10;762:9;:21::i;:::-;:30;;754:58;;;;-1:-1:-1;;;754:58:0;;2282:2:1;754:58:0;;;2264:21:1;2321:2;2301:18;;;2294:30;-1:-1:-1;;;2340:18:1;;;2333:45;2395:18;;754:58:0;2254:165:1;754:58:0;-1:-1:-1;;;;;823:12:0;;:8;:12;;;;;;;;;;:21;;839:5;;823:8;:21;;839:5;;823:21;:::i;:::-;;;;-1:-1:-1;;864:10:0;855:8;:20;;;;;;;;;;:29;;879:5;;855:8;:29;;879:5;;855:29;:::i;:::-;;;;-1:-1:-1;;899:31:0;;2916:25:1;;;-1:-1:-1;;;;;899:31:0;;;908:10;;899:31;;2904:2:1;2889:18;899: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://e4b2c7cab073211eac63139123f1b01830ac90b6b1de82c4a4b7066d5b8ccd20
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
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.