Feature Tip: Add private address tag to any address under My Name Tag !
ERC-20
Overview
Max Total Supply
6,800,000,000 MGROK
Holders
115
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Grok
Compiler Version
v0.8.22+commit.4fc1097e
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2023-12-10 */ // SPDX-License-Identifier: MIT pragma solidity ^0.8.2; contract Grok { mapping(address => uint) public balances; mapping(address => mapping(address => uint)) public allowance; uint public totalSupply = 6800000000 * 10 ** 18; string public name = "Meme Grok"; string public symbol = "MGROK"; 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) view 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":"view","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
6b15f8d402a52368049000000060025560c060405260096080908152684d656d652047726f6b60b81b60a052600390610038908261012e565b506040805180820190915260058152644d47524f4b60d81b6020820152600490610062908261012e565b50601260055534801561007457600080fd5b50600254336000908152602081905260409020556101ed565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806100b757607f821691505b6020821081036100d757634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115610129576000816000526020600020601f850160051c810160208610156101065750805b601f850160051c820191505b8181101561012557828155600101610112565b5050505b505050565b81516001600160401b038111156101475761014761008d565b61015b8161015584546100a3565b846100dd565b602080601f83116001811461019057600084156101785750858301515b600019600386901b1c1916600185901b178555610125565b600085815260208120601f198616915b828110156101bf578886015182559484019460019091019084016101a0565b50858210156101dd5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6106d8806101fc6000396000f3fe608060405234801561001057600080fd5b506004361061009e5760003560e01c8063313ce56711610066578063313ce5671461012e57806370a082311461013757806395d89b4114610160578063a9059cbb14610168578063dd62ed3e1461017b57600080fd5b806306fdde03146100a3578063095ea7b3146100c157806318160ddd146100e457806323b872dd146100fb57806327e235e31461010e575b600080fd5b6100ab6101a6565b6040516100b89190610506565b60405180910390f35b6100d46100cf366004610571565b610234565b60405190151581526020016100b8565b6100ed60025481565b6040519081526020016100b8565b6100d461010936600461059b565b6102a1565b6100ed61011c3660046105d7565b60006020819052908152604090205481565b6100ed60055481565b6100ed6101453660046105d7565b6001600160a01b031660009081526020819052604090205490565b6100ab61041a565b6100d4610176366004610571565b610427565b6100ed6101893660046105f9565b600160209081526000928352604080842090915290825290205481565b600380546101b39061062c565b80601f01602080910402602001604051908101604052809291908181526020018280546101df9061062c565b801561022c5780601f106102015761010080835404028352916020019161022c565b820191906000526020600020905b81548152906001019060200180831161020f57829003601f168201915b505050505081565b3360008181526001602090815260408083206001600160a01b038716808552925280832085905551919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259061028f9086815260200190565b60405180910390a35060015b92915050565b6001600160a01b0383166000908152602081905260408120548211156103005760405162461bcd60e51b815260206004820152600f60248201526e62616c616e636520746f6f206c6f7760881b60448201526064015b60405180910390fd5b6001600160a01b03841660009081526001602090815260408083203384529091529020548211156103675760405162461bcd60e51b8152602060048201526011602482015270616c6c6f77616e636520746f6f206c6f7760781b60448201526064016102f7565b6001600160a01b0383166000908152602081905260408120805484929061038f90849061067c565b90915550506001600160a01b038416600090815260208190526040812080548492906103bc90849061068f565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161040891815260200190565b60405180910390a35060019392505050565b600480546101b39061062c565b336000908152602081905260408120548211156104785760405162461bcd60e51b815260206004820152600f60248201526e62616c616e636520746f6f206c6f7760881b60448201526064016102f7565b6001600160a01b038316600090815260208190526040812080548492906104a090849061067c565b909155505033600090815260208190526040812080548492906104c490849061068f565b90915550506040518281526001600160a01b0384169033907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200161028f565b60006020808352835180602085015260005b8181101561053457858101830151858201604001528201610518565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b038116811461056c57600080fd5b919050565b6000806040838503121561058457600080fd5b61058d83610555565b946020939093013593505050565b6000806000606084860312156105b057600080fd5b6105b984610555565b92506105c760208501610555565b9150604084013590509250925092565b6000602082840312156105e957600080fd5b6105f282610555565b9392505050565b6000806040838503121561060c57600080fd5b61061583610555565b915061062360208401610555565b90509250929050565b600181811c9082168061064057607f821691505b60208210810361066057634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b8082018082111561029b5761029b610666565b8181038181111561029b5761029b61066656fea26469706673582212207be1cb19e50f9932e984217b75649fb5b31cf4b3e4727fa079a9788095a3f18b64736f6c63430008160033
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061009e5760003560e01c8063313ce56711610066578063313ce5671461012e57806370a082311461013757806395d89b4114610160578063a9059cbb14610168578063dd62ed3e1461017b57600080fd5b806306fdde03146100a3578063095ea7b3146100c157806318160ddd146100e457806323b872dd146100fb57806327e235e31461010e575b600080fd5b6100ab6101a6565b6040516100b89190610506565b60405180910390f35b6100d46100cf366004610571565b610234565b60405190151581526020016100b8565b6100ed60025481565b6040519081526020016100b8565b6100d461010936600461059b565b6102a1565b6100ed61011c3660046105d7565b60006020819052908152604090205481565b6100ed60055481565b6100ed6101453660046105d7565b6001600160a01b031660009081526020819052604090205490565b6100ab61041a565b6100d4610176366004610571565b610427565b6100ed6101893660046105f9565b600160209081526000928352604080842090915290825290205481565b600380546101b39061062c565b80601f01602080910402602001604051908101604052809291908181526020018280546101df9061062c565b801561022c5780601f106102015761010080835404028352916020019161022c565b820191906000526020600020905b81548152906001019060200180831161020f57829003601f168201915b505050505081565b3360008181526001602090815260408083206001600160a01b038716808552925280832085905551919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259061028f9086815260200190565b60405180910390a35060015b92915050565b6001600160a01b0383166000908152602081905260408120548211156103005760405162461bcd60e51b815260206004820152600f60248201526e62616c616e636520746f6f206c6f7760881b60448201526064015b60405180910390fd5b6001600160a01b03841660009081526001602090815260408083203384529091529020548211156103675760405162461bcd60e51b8152602060048201526011602482015270616c6c6f77616e636520746f6f206c6f7760781b60448201526064016102f7565b6001600160a01b0383166000908152602081905260408120805484929061038f90849061067c565b90915550506001600160a01b038416600090815260208190526040812080548492906103bc90849061068f565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161040891815260200190565b60405180910390a35060019392505050565b600480546101b39061062c565b336000908152602081905260408120548211156104785760405162461bcd60e51b815260206004820152600f60248201526e62616c616e636520746f6f206c6f7760881b60448201526064016102f7565b6001600160a01b038316600090815260208190526040812080548492906104a090849061067c565b909155505033600090815260208190526040812080548492906104c490849061068f565b90915550506040518281526001600160a01b0384169033907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200161028f565b60006020808352835180602085015260005b8181101561053457858101830151858201604001528201610518565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b038116811461056c57600080fd5b919050565b6000806040838503121561058457600080fd5b61058d83610555565b946020939093013593505050565b6000806000606084860312156105b057600080fd5b6105b984610555565b92506105c760208501610555565b9150604084013590509250925092565b6000602082840312156105e957600080fd5b6105f282610555565b9392505050565b6000806040838503121561060c57600080fd5b61061583610555565b915061062360208401610555565b90509250929050565b600181811c9082168061064057607f821691505b60208210810361066057634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b8082018082111561029b5761029b610666565b8181038181111561029b5761029b61066656fea26469706673582212207be1cb19e50f9932e984217b75649fb5b31cf4b3e4727fa079a9788095a3f18b64736f6c63430008160033
Deployed Bytecode Sourcemap
60:1529:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;250:32;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;1384:202;;;;;;:::i;:::-;;:::i;:::-;;;1169:14:1;;1162:22;1144:41;;1132:2;1117:18;1384:202:0;1004:187:1;196:47:0;;;;;;;;;1342:25:1;;;1330:2;1315:18;196:47:0;1196:177:1;1011:361:0;;;;;;:::i;:::-;;:::i;81:40::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;326:25;;;;;;605:102;;;;;;:::i;:::-;-1:-1:-1;;;;;684:15:0;660:4;684:15;;;;;;;;;;;;605:102;289:30;;;:::i;719:280::-;;;;;;:::i;:::-;;:::i;128:61::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;250:32;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;1384:202::-;1473:10;1446:4;1463:21;;;:9;:21;;;;;;;;-1:-1:-1;;;;;1463:30:0;;;;;;;;;;:38;;;1517:36;1446:4;;1463:30;;1517:36;;;;1496:5;1342:25:1;;1330:2;1315:18;;1196:177;1517:36:0;;;;;;;;-1:-1:-1;1571:4:0;1384:202;;;;;:::o;1011:361::-;-1:-1:-1;;;;;684:15:0;;1086:4;684:15;;;;;;;;;;;1130:5;-1:-1:-1;1111:24:0;1103:52;;;;-1:-1:-1;;;1103:52:0;;2754:2:1;1103:52:0;;;2736:21:1;2793:2;2773:18;;;2766:30;-1:-1:-1;;;2812:18:1;;;2805:45;2867:18;;1103:52:0;;;;;;;;;-1:-1:-1;;;;;1174:15:0;;;;;;:9;:15;;;;;;;;1190:10;1174:27;;;;;;;;:36;-1:-1:-1;1174:36:0;1166:66;;;;-1:-1:-1;;;1166:66:0;;3098:2:1;1166:66:0;;;3080:21:1;3137:2;3117:18;;;3110:30;-1:-1:-1;;;3156:18:1;;;3149:47;3213:18;;1166:66:0;2896:341:1;1166:66:0;-1:-1:-1;;;;;1243:12:0;;:8;:12;;;;;;;;;;:21;;1259:5;;1243:8;:21;;1259:5;;1243:21;:::i;:::-;;;;-1:-1:-1;;;;;;;1275:14:0;;:8;:14;;;;;;;;;;:23;;1293:5;;1275:8;:23;;1293:5;;1275:23;:::i;:::-;;;;;;;;1329:2;-1:-1:-1;;;;;1314:25:0;1323:4;-1:-1:-1;;;;;1314:25:0;;1333:5;1314:25;;;;1342::1;;1330:2;1315:18;;1196:177;1314:25:0;;;;;;;;-1:-1:-1;1357:4:0;1011:361;;;;;:::o;289:30::-;;;;;;;:::i;719:280::-;811:10;776:4;684:15;;;;;;;;;;;826:5;-1:-1:-1;801:30:0;793:58;;;;-1:-1:-1;;;793:58:0;;2754:2:1;793:58:0;;;2736:21:1;2793:2;2773:18;;;2766:30;-1:-1:-1;;;2812:18:1;;;2805:45;2867:18;;793:58:0;2552:339:1;793:58:0;-1:-1:-1;;;;;862:12:0;;:8;:12;;;;;;;;;;:21;;878:5;;862:8;:21;;878:5;;862:21;:::i;:::-;;;;-1:-1:-1;;903:10:0;894:8;:20;;;;;;;;;;:29;;918:5;;894:8;:29;;918:5;;894:29;:::i;:::-;;;;-1:-1:-1;;938:31:0;;1342:25:1;;;-1:-1:-1;;;;;938:31:0;;;947:10;;938:31;;1330:2:1;1315:18;938:31:0;1196:177:1;14:548;126:4;155:2;184;173:9;166:21;216:6;210:13;259:6;254:2;243:9;239:18;232:34;284:1;294:140;308:6;305:1;302:13;294:140;;;403:14;;;399:23;;393:30;369:17;;;388:2;365:26;358:66;323:10;;294:140;;;298:3;483:1;478:2;469:6;458:9;454:22;450:31;443:42;553:2;546;542:7;537:2;529:6;525:15;521:29;510:9;506:45;502:54;494:62;;;;14:548;;;;:::o;567:173::-;635:20;;-1:-1:-1;;;;;684:31:1;;674:42;;664:70;;730:1;727;720:12;664:70;567:173;;;:::o;745:254::-;813:6;821;874:2;862:9;853:7;849:23;845:32;842:52;;;890:1;887;880:12;842:52;913:29;932:9;913:29;:::i;:::-;903:39;989:2;974:18;;;;961:32;;-1:-1:-1;;;745:254:1:o;1378:328::-;1455:6;1463;1471;1524:2;1512:9;1503:7;1499:23;1495:32;1492:52;;;1540:1;1537;1530:12;1492:52;1563:29;1582:9;1563:29;:::i;:::-;1553:39;;1611:38;1645:2;1634:9;1630:18;1611:38;:::i;:::-;1601:48;;1696:2;1685:9;1681:18;1668:32;1658:42;;1378:328;;;;;:::o;1711:186::-;1770:6;1823:2;1811:9;1802:7;1798:23;1794:32;1791:52;;;1839:1;1836;1829:12;1791:52;1862:29;1881:9;1862:29;:::i;:::-;1852:39;1711:186;-1:-1:-1;;;1711:186:1:o;1902:260::-;1970:6;1978;2031:2;2019:9;2010:7;2006:23;2002:32;1999:52;;;2047:1;2044;2037:12;1999:52;2070:29;2089:9;2070:29;:::i;:::-;2060:39;;2118:38;2152:2;2141:9;2137:18;2118:38;:::i;:::-;2108:48;;1902:260;;;;;:::o;2167:380::-;2246:1;2242:12;;;;2289;;;2310:61;;2364:4;2356:6;2352:17;2342:27;;2310:61;2417:2;2409:6;2406:14;2386:18;2383:38;2380:161;;2463:10;2458:3;2454:20;2451:1;2444:31;2498:4;2495:1;2488:15;2526:4;2523:1;2516:15;2380:161;;2167:380;;;:::o;3242:127::-;3303:10;3298:3;3294:20;3291:1;3284:31;3334:4;3331:1;3324:15;3358:4;3355:1;3348:15;3374:125;3439:9;;;3460:10;;;3457:36;;;3473:18;;:::i;3504:128::-;3571:9;;;3592:11;;;3589:37;;;3606:18;;:::i
Swarm Source
ipfs://7be1cb19e50f9932e984217b75649fb5b31cf4b3e4727fa079a9788095a3f18b
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.