ERC-20
Overview
Max Total Supply
100,000,000,000 GOLD
Holders
3,900
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:
GOLDToken
Compiler Version
v0.4.19+commit.c4cbbb05
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2019-05-08 */ /** * Source Code first verified at https://etherscan.io on Wednesday, May 8, 2019 (UTC) */ pragma solidity ^0.4.8; contract Token { /* This is a slight change to the ERC20 base standard. function totalSupply() constant returns (uint256 supply); is replaced with: uint256 public totalSupply; This automatically creates a getter function for the totalSupply. This is moved to the base contract since public getter functions are not currently recognised as an implementation of the matching abstract function by the compiler. */ /// total amount of tokens uint256 public totalSupply; /// @param _owner The address from which the balance will be retrieved /// @return The balance function balanceOf(address _owner) public view returns (uint256 balance); /// @notice send `_value` token to `_to` from `msg.sender` /// @param _to The address of the recipient /// @param _value The amount of token to be transferred /// @return Whether the transfer was successful or not function transfer(address _to, uint256 _value) public returns (bool success); /// @notice send `_value` token to `_to` from `_from` on the condition it is approved by `_from` /// @param _from The address of the sender /// @param _to The address of the recipient /// @param _value The amount of token to be transferred /// @return Whether the transfer was successful or not function transferFrom(address _from, address _to, uint256 _value) public returns (bool success); /// @notice `msg.sender` approves `_spender` to spend `_value` tokens /// @param _spender The address of the account able to transfer the tokens /// @param _value The amount of tokens to be approved for transfer /// @return Whether the approval was successful or not function approve(address _spender, uint256 _value) public returns (bool success); /// @param _owner The address of the account owning tokens /// @param _spender The address of the account able to transfer the tokens /// @return Amount of remaining tokens allowed to spent function allowance(address _owner, address _spender) public view returns (uint256 remaining); event Transfer(address indexed _from, address indexed _to, uint256 _value); event Approval(address indexed _owner, address indexed _spender, uint256 _value); } contract StandardToken is Token { uint256 constant MAX_UINT256 = 2**256 - 1; function transfer(address _to, uint256 _value) public returns (bool success) { //Default assumes totalSupply can't be over max (2^256 - 1). //If your token leaves out totalSupply and can issue more tokens as time goes on, you need to check if it doesn't wrap. //Replace the if with this one instead. //require(balances[msg.sender] >= _value && balances[_to] + _value > balances[_to]); require(balances[msg.sender] >= _value); balances[msg.sender] -= _value; balances[_to] += _value; Transfer(msg.sender, _to, _value); return true; } function transferFrom(address _from, address _to, uint256 _value) public returns (bool success) { //same as above. Replace this line with the following if you want to protect against wrapping uints. //require(balances[_from] >= _value && allowed[_from][msg.sender] >= _value && balances[_to] + _value > balances[_to]); uint256 allowance = allowed[_from][msg.sender]; require(balances[_from] >= _value && allowance >= _value); balances[_to] += _value; balances[_from] -= _value; if (allowance < MAX_UINT256) { allowed[_from][msg.sender] -= _value; } Transfer(_from, _to, _value); return true; } function balanceOf(address _owner) view public returns (uint256 balance) { return balances[_owner]; } function approve(address _spender, uint256 _value) public returns (bool success) { allowed[msg.sender][_spender] = _value; Approval(msg.sender, _spender, _value); return true; } function allowance(address _owner, address _spender) view public returns (uint256 remaining) { return allowed[_owner][_spender]; } mapping (address => uint256) balances; mapping (address => mapping (address => uint256)) allowed; } contract GOLDToken is StandardToken { function GOLDToken() public { balances[msg.sender] = initialAmount; // Give the creator all initial balances is defined in StandardToken.sol totalSupply = initialAmount; // Update total supply, totalSupply is defined in Tocken.sol } function() public { } /* Approves and then calls the receiving contract */ function approveAndCall(address _spender, uint256 _value, bytes _extraData) public returns (bool success) { allowed[msg.sender][_spender] = _value; Approval(msg.sender, _spender, _value); //call the receiveApproval function on the contract you want to be notified. //This crafts the function signature manually so one doesn't have to include a contract in here just for this. //receiveApproval(address _from, uint256 _value, address _tokenContract, bytes _extraData) //it is assumed when one does this that the call *should* succeed, otherwise one would use vanilla approve instead. require(_spender.call(bytes4(bytes32(keccak256("receiveApproval(address,uint256,address,bytes)"))), msg.sender, _value, this, _extraData)); return true; } string public name = "GOLD"; uint8 public decimals = 18; string public symbol = "GOLD"; string public version = "v1.1"; uint256 public initialAmount = 1000 * (10 ** 8) * (10 ** 18); }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"}],"name":"approve","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"version","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"balance","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transfer","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"},{"name":"_extraData","type":"bytes"}],"name":"approveAndCall","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"},{"name":"_spender","type":"address"}],"name":"allowance","outputs":[{"name":"remaining","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"initialAmount","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":false,"stateMutability":"nonpayable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_from","type":"address"},{"indexed":true,"name":"_to","type":"address"},{"indexed":false,"name":"_value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_owner","type":"address"},{"indexed":true,"name":"_spender","type":"address"},{"indexed":false,"name":"_value","type":"uint256"}],"name":"Approval","type":"event"}]
Contract Creation Code
606060405260408051908101604052600481527f474f4c44000000000000000000000000000000000000000000000000000000006020820152600390805161004b929160200190610129565b506004805460ff1916601217905560408051908101604052600481527f474f4c4400000000000000000000000000000000000000000000000000000000602082015260059080516100a0929160200190610129565b5060408051908101604052600481527f76312e3100000000000000000000000000000000000000000000000000000000602082015260069080516100e8929160200190610129565b506c01431e0fae6d7217caa0000000600755341561010557600080fd5b600754600160a060020a0333166000908152600160205260408120829055556101c4565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061016a57805160ff1916838001178555610197565b82800160010185558215610197579182015b8281111561019757825182559160200191906001019061017c565b506101a39291506101a7565b5090565b6101c191905b808211156101a357600081556001016101ad565b90565b610888806101d36000396000f3006060604052600436106100a05763ffffffff60e060020a60003504166306fdde0381146100ad578063095ea7b31461013757806318160ddd1461016d57806323b872dd14610192578063313ce567146101ba57806354fd4d50146101e357806370a08231146101f657806395d89b4114610215578063a9059cbb14610228578063cae9ca511461024a578063dd62ed3e146102af578063fc1ed437146102d4575b34156100ab57600080fd5b005b34156100b857600080fd5b6100c06102e7565b60405160208082528190810183818151815260200191508051906020019080838360005b838110156100fc5780820151838201526020016100e4565b50505050905090810190601f1680156101295780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561014257600080fd5b610159600160a060020a0360043516602435610385565b604051901515815260200160405180910390f35b341561017857600080fd5b6101806103f1565b60405190815260200160405180910390f35b341561019d57600080fd5b610159600160a060020a03600435811690602435166044356103f7565b34156101c557600080fd5b6101cd6104fd565b60405160ff909116815260200160405180910390f35b34156101ee57600080fd5b6100c0610506565b341561020157600080fd5b610180600160a060020a0360043516610571565b341561022057600080fd5b6100c061058c565b341561023357600080fd5b610159600160a060020a03600435166024356105f7565b341561025557600080fd5b61015960048035600160a060020a03169060248035919060649060443590810190830135806020601f8201819004810201604051908101604052818152929190602084018383808284375094965061068b95505050505050565b34156102ba57600080fd5b610180600160a060020a036004358116906024351661082b565b34156102df57600080fd5b610180610856565b60038054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561037d5780601f106103525761010080835404028352916020019161037d565b820191906000526020600020905b81548152906001019060200180831161036057829003601f168201915b505050505081565b600160a060020a03338116600081815260026020908152604080832094871680845294909152808220859055909291907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259085905190815260200160405180910390a350600192915050565b60005481565b600160a060020a03808416600081815260026020908152604080832033909516835293815283822054928252600190529182205483901080159061043b5750828110155b151561044657600080fd5b600160a060020a03808516600090815260016020526040808220805487019055918716815220805484900390556000198110156104ab57600160a060020a03808616600090815260026020908152604080832033909416835292905220805484900390555b83600160a060020a031685600160a060020a03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8560405190815260200160405180910390a3506001949350505050565b60045460ff1681565b60068054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561037d5780601f106103525761010080835404028352916020019161037d565b600160a060020a031660009081526001602052604090205490565b60058054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561037d5780601f106103525761010080835404028352916020019161037d565b600160a060020a0333166000908152600160205260408120548290101561061d57600080fd5b600160a060020a033381166000818152600160205260408082208054879003905592861680825290839020805486019055917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a350600192915050565b600160a060020a03338116600081815260026020908152604080832094881680845294909152808220869055909291907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259086905190815260200160405180910390a383600160a060020a03166040517f72656365697665417070726f76616c28616464726573732c75696e743235362c81527f616464726573732c6279746573290000000000000000000000000000000000006020820152602e01604051809103902060e060020a9004338530866040518563ffffffff1660e060020a0281526004018085600160a060020a0316600160a060020a0316815260200184815260200183600160a060020a0316600160a060020a03168152602001828051906020019080838360005b838110156107cc5780820151838201526020016107b4565b50505050905090810190601f1680156107f95780820380516001836020036101000a031916815260200191505b5094505050505060006040518083038160008761646e5a03f192505050151561082157600080fd5b5060019392505050565b600160a060020a03918216600090815260026020908152604080832093909416825291909152205490565b600754815600a165627a7a7230582038bbb511d9d6d8ad403120621f9d455054fbc7ae6296c0454a4f35e4f8ddb1c60029
Deployed Bytecode
0x6060604052600436106100a05763ffffffff60e060020a60003504166306fdde0381146100ad578063095ea7b31461013757806318160ddd1461016d57806323b872dd14610192578063313ce567146101ba57806354fd4d50146101e357806370a08231146101f657806395d89b4114610215578063a9059cbb14610228578063cae9ca511461024a578063dd62ed3e146102af578063fc1ed437146102d4575b34156100ab57600080fd5b005b34156100b857600080fd5b6100c06102e7565b60405160208082528190810183818151815260200191508051906020019080838360005b838110156100fc5780820151838201526020016100e4565b50505050905090810190601f1680156101295780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561014257600080fd5b610159600160a060020a0360043516602435610385565b604051901515815260200160405180910390f35b341561017857600080fd5b6101806103f1565b60405190815260200160405180910390f35b341561019d57600080fd5b610159600160a060020a03600435811690602435166044356103f7565b34156101c557600080fd5b6101cd6104fd565b60405160ff909116815260200160405180910390f35b34156101ee57600080fd5b6100c0610506565b341561020157600080fd5b610180600160a060020a0360043516610571565b341561022057600080fd5b6100c061058c565b341561023357600080fd5b610159600160a060020a03600435166024356105f7565b341561025557600080fd5b61015960048035600160a060020a03169060248035919060649060443590810190830135806020601f8201819004810201604051908101604052818152929190602084018383808284375094965061068b95505050505050565b34156102ba57600080fd5b610180600160a060020a036004358116906024351661082b565b34156102df57600080fd5b610180610856565b60038054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561037d5780601f106103525761010080835404028352916020019161037d565b820191906000526020600020905b81548152906001019060200180831161036057829003601f168201915b505050505081565b600160a060020a03338116600081815260026020908152604080832094871680845294909152808220859055909291907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259085905190815260200160405180910390a350600192915050565b60005481565b600160a060020a03808416600081815260026020908152604080832033909516835293815283822054928252600190529182205483901080159061043b5750828110155b151561044657600080fd5b600160a060020a03808516600090815260016020526040808220805487019055918716815220805484900390556000198110156104ab57600160a060020a03808616600090815260026020908152604080832033909416835292905220805484900390555b83600160a060020a031685600160a060020a03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8560405190815260200160405180910390a3506001949350505050565b60045460ff1681565b60068054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561037d5780601f106103525761010080835404028352916020019161037d565b600160a060020a031660009081526001602052604090205490565b60058054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561037d5780601f106103525761010080835404028352916020019161037d565b600160a060020a0333166000908152600160205260408120548290101561061d57600080fd5b600160a060020a033381166000818152600160205260408082208054879003905592861680825290839020805486019055917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a350600192915050565b600160a060020a03338116600081815260026020908152604080832094881680845294909152808220869055909291907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259086905190815260200160405180910390a383600160a060020a03166040517f72656365697665417070726f76616c28616464726573732c75696e743235362c81527f616464726573732c6279746573290000000000000000000000000000000000006020820152602e01604051809103902060e060020a9004338530866040518563ffffffff1660e060020a0281526004018085600160a060020a0316600160a060020a0316815260200184815260200183600160a060020a0316600160a060020a03168152602001828051906020019080838360005b838110156107cc5780820151838201526020016107b4565b50505050905090810190601f1680156107f95780820380516001836020036101000a031916815260200191505b5094505050505060006040518083038160008761646e5a03f192505050151561082157600080fd5b5060019392505050565b600160a060020a03918216600090815260026020908152604080832093909416825291909152205490565b600754815600a165627a7a7230582038bbb511d9d6d8ad403120621f9d455054fbc7ae6296c0454a4f35e4f8ddb1c60029
Deployed Bytecode Sourcemap
4470:1446:0:-;;;;;;;;;-1:-1:-1;;;4470:1446:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5710:27;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:2;8:100;;;99:1;94:3;90;84:5;71:3;;;64:6;52:2;45:3;8:100;;;12:14;3:109;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3987:209:0;;;;;;;;;;-1:-1:-1;;;;;3987:209:0;;;;;;;;;;;;;;;;;;;;;;;;621:26;;;;;;;;;;;;;;;;;;;;;;;;;;;3155:701;;;;;;;;;;-1:-1:-1;;;;;3155:701:0;;;;;;;;;;;;5744:26;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5813:30;;;;;;;;;;;;3864:115;;;;;;;;;;-1:-1:-1;;;;;3864:115:0;;;;;5777:29;;;;;;;;;;;;2529:618;;;;;;;;;;-1:-1:-1;;;;;2529:618:0;;;;;;;4885:817;;;;;;;;;;;;;-1:-1:-1;;;;;4885:817:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;4885:817:0;;-1:-1:-1;4885:817:0;;-1:-1:-1;;;;;;4885:817:0;4204:147;;;;;;;;;;-1:-1:-1;;;;;4204:147:0;;;;;;;;;;5850:60;;;;;;;;;;;;5710:27;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;3987:209::-;-1:-1:-1;;;;;4087:10:0;4079:19;;4054:12;4079:19;;;:7;:19;;;;;;;;:29;;;;;;;;;;;;;:38;;;4054:12;;4079:29;:19;4128:38;;4111:6;;4128:38;;;;;;;;;;;;;-1:-1:-1;4184:4:0;3987:209;;;;:::o;621:26::-;;;;:::o;3155:701::-;-1:-1:-1;;;;;3521:14:0;;;3237:12;3521:14;;;:7;:14;;;;;;;;3536:10;3521:26;;;;;;;;;;;;3566:15;;;:8;:15;;;;;;:25;;;;;;:48;;;3608:6;3595:9;:19;;3566:48;3558:57;;;;;;;;-1:-1:-1;;;;;3626:13:0;;;;;;;:8;:13;;;;;;:23;;;;;;3660:15;;;;;;:25;;;;;;;-1:-1:-1;;3700:23:0;;3696:92;;;-1:-1:-1;;;;;3740:14:0;;;;;;;:7;:14;;;;;;;;3755:10;3740:26;;;;;;;;;:36;;;;;;;3696:92;3814:3;-1:-1:-1;;;;;3798:28:0;3807:5;-1:-1:-1;;;;;3798:28:0;;3819:6;3798:28;;;;;;;;;;;;;;-1:-1:-1;3844:4:0;;3155:701;-1:-1:-1;;;;3155:701:0:o;5744:26::-;;;;;;:::o;5813:30::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3864:115;-1:-1:-1;;;;;3955:16:0;3920:15;3955:16;;;:8;:16;;;;;;;3864:115::o;5777:29::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2529:618;-1:-1:-1;;;;;2976:10:0;2967:20;2592:12;2967:20;;;:8;:20;;;;;;:30;;;;2959:39;;;;;;-1:-1:-1;;;;;3018:10:0;3009:20;;;;;;:8;:20;;;;;;:30;;;;;;;3050:13;;;;;;;;;;:23;;;;;;:13;3084:33;;3033:6;;3084:33;;;;;;;;;;;;;-1:-1:-1;3135:4:0;2529:618;;;;:::o;4885:817::-;-1:-1:-1;;;;;5010:10:0;5002:19;;4977:12;5002:19;;;:7;:19;;;;;;;;:29;;;;;;;;;;;;;:38;;;4977:12;;5002:29;:19;5051:38;;5034:6;;5051:38;;;;;;;;;;;;;5542:8;-1:-1:-1;;;;;5542:13:0;5571:59;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;5542:129:0;;5634:10;5646:6;5654:4;5660:10;5542:129;;;;;-1:-1:-1;;;5542:129:0;;;;;;;-1:-1:-1;;;;;5542:129:0;-1:-1:-1;;;;;5542:129:0;;;;;;;;;;;-1:-1:-1;;;;;5542:129:0;-1:-1:-1;;;;;5542:129:0;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:2;8:100;;;99:1;94:3;90;84:5;71:3;;;64:6;52:2;45:3;8:100;;;12:14;3:109;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5534:138:0;;;;;;;;-1:-1:-1;5690:4:0;4885:817;;;;;:::o;4204:147::-;-1:-1:-1;;;;;4318:15:0;;;4283:17;4318:15;;;:7;:15;;;;;;;;:25;;;;;;;;;;;;;4204:147::o;5850:60::-;;;;:::o
Swarm Source
bzzr://38bbb511d9d6d8ad403120621f9d455054fbc7ae6296c0454a4f35e4f8ddb1c6
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.