ERC-20
Overview
Max Total Supply
2,200,000,000 5TH
Holders
36
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
864,051.36600875 5THValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
ERC20Token
Compiler Version
v0.4.21+commit.dfe3193c
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2019-08-24 */ pragma solidity ^0.4.21; contract ERC20Token { string public name; string public symbol; uint8 public decimals; uint256 public totalSupply; // Balances mapping (address => uint256) balances; // Allowances mapping (address => mapping (address => uint256)) allowances; // ----- Events ----- event Transfer(address indexed from, address indexed to, uint256 value); event Approval(address indexed owner, address indexed spender, uint256 value); /** * Constructor function */ function ERC20Token(uint256 _initialSupply, string _tokenName, string _tokenSymbol, uint8 _decimals) public { name = _tokenName; // Set the name for display purposes symbol = _tokenSymbol; // Set the symbol for display purposes decimals = _decimals; totalSupply = _initialSupply * 10 ** uint256(decimals); // Update total supply with the decimal amount balances[msg.sender] = totalSupply; // Give the creator all initial tokens } function balanceOf(address _owner) public view returns(uint256) { return balances[_owner]; } function allowance(address _owner, address _spender) public view returns (uint256) { return allowances[_owner][_spender]; } /** * Internal transfer, only can be called by this contract */ function _transfer(address _from, address _to, uint _value) internal returns(bool) { // Prevent transfer to 0x0 address. Use burn() instead require(_to != address(0)); // Check if the sender has enough require(balances[_from] >= _value); // Check for overflows require(balances[_to] + _value > balances[_to]); // Save this for an assertion in the future uint previousBalances = balances[_from] + balances[_to]; // Subtract from the sender balances[_from] -= _value; // Add the same to the recipient balances[_to] += _value; emit Transfer(_from, _to, _value); // Asserts are used to use static analysis to find bugs in your code. They should never fail assert(balances[_from] + balances[_to] == previousBalances); return true; } /** * Transfer tokens * * Send `_value` tokens to `_to` from your account * * @param _to The address of the recipient * @param _value the amount to send */ function transfer(address _to, uint256 _value) public returns(bool) { return _transfer(msg.sender, _to, _value); } /** * Transfer tokens from other address * * Send `_value` tokens to `_to` in behalf of `_from` * * @param _from The address of the sender * @param _to The address of the recipient * @param _value the amount to send */ function transferFrom(address _from, address _to, uint256 _value) public returns(bool) { require(_value <= allowances[_from][msg.sender]); // Check allowance allowances[_from][msg.sender] -= _value; return _transfer(_from, _to, _value); } /** * Set allowance for other address * * Allows `_spender` to spend no more than `_value` tokens in your behalf * * @param _spender The address authorized to spend * @param _value the max amount they can spend */ function approve(address _spender, uint256 _value) public returns(bool) { allowances[msg.sender][_spender] = _value; emit Approval(msg.sender, _spender, _value); return true; } function increaseApproval(address _spender, uint _addedValue) public returns (bool) { // Check for overflows require(allowances[msg.sender][_spender] + _addedValue > allowances[msg.sender][_spender]); allowances[msg.sender][_spender] += _addedValue; emit Approval(msg.sender, _spender, allowances[msg.sender][_spender]); return true; } function decreaseApproval(address _spender, uint _subtractedValue) public returns (bool) { uint oldValue = allowances[msg.sender][_spender]; if (_subtractedValue > oldValue) { allowances[msg.sender][_spender] = 0; } else { allowances[msg.sender][_spender] = oldValue - _subtractedValue; } emit Approval(msg.sender, _spender, allowances[msg.sender][_spender]); return true; } }
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":"","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":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_subtractedValue","type":"uint256"}],"name":"decreaseApproval","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"","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":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_addedValue","type":"uint256"}],"name":"increaseApproval","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"},{"name":"_spender","type":"address"}],"name":"allowance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"_initialSupply","type":"uint256"},{"name":"_tokenName","type":"string"},{"name":"_tokenSymbol","type":"string"},{"name":"_decimals","type":"uint8"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"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
6060604052341561000f57600080fd5b60405161091438038061091483398101604052808051919060200180518201919060200180518201919060200180519150600090508380516100559291602001906100aa565b5060018280516100699291602001906100aa565b506002805460ff191660ff928316179081905516600a0a92909202600381905533600160a060020a0316600090815260046020526040902055506101459050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106100eb57805160ff1916838001178555610118565b82800160010185558215610118579182015b828111156101185782518255916020019190600101906100fd565b50610124929150610128565b5090565b61014291905b80821115610124576000815560010161012e565b90565b6107c0806101546000396000f3006060604052600436106100ae5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100b3578063095ea7b31461013d57806318160ddd1461017357806323b872dd14610198578063313ce567146101c057806366188463146101e957806370a082311461020b57806395d89b411461022a578063a9059cbb1461023d578063d73dd6231461025f578063dd62ed3e14610281575b600080fd5b34156100be57600080fd5b6100c66102a6565b60405160208082528190810183818151815260200191508051906020019080838360005b838110156101025780820151838201526020016100ea565b50505050905090810190601f16801561012f5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561014857600080fd5b61015f600160a060020a0360043516602435610344565b604051901515815260200160405180910390f35b341561017e57600080fd5b6101866103b0565b60405190815260200160405180910390f35b34156101a357600080fd5b61015f600160a060020a03600435811690602435166044356103b6565b34156101cb57600080fd5b6101d361042b565b60405160ff909116815260200160405180910390f35b34156101f457600080fd5b61015f600160a060020a0360043516602435610434565b341561021657600080fd5b610186600160a060020a0360043516610522565b341561023557600080fd5b6100c661053d565b341561024857600080fd5b61015f600160a060020a03600435166024356105a8565b341561026a57600080fd5b61015f600160a060020a03600435166024356105bc565b341561028c57600080fd5b610186600160a060020a036004358116906024351661065d565b60008054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561033c5780601f106103115761010080835404028352916020019161033c565b820191906000526020600020905b81548152906001019060200180831161031f57829003601f168201915b505050505081565b600160a060020a03338116600081815260056020908152604080832094871680845294909152808220859055909291907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259085905190815260200160405180910390a350600192915050565b60035481565b600160a060020a038084166000908152600560209081526040808320339094168352929052908120548211156103eb57600080fd5b600160a060020a0380851660009081526005602090815260408083203390941683529290522080548390039055610423848484610688565b949350505050565b60025460ff1681565b600160a060020a0333811660009081526005602090815260408083209386168352929052908120548083111561049157600160a060020a0333811660009081526005602090815260408083209388168352929052908120556104bc565b600160a060020a03338116600090815260056020908152604080832093881683529290522083820390555b600160a060020a0333811660008181526005602090815260408083209489168084529490915290819020547f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925915190815260200160405180910390a35060019392505050565b600160a060020a031660009081526004602052604090205490565b60018054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561033c5780601f106103115761010080835404028352916020019161033c565b60006105b5338484610688565b9392505050565b600160a060020a033381166000908152600560209081526040808320938616835292905290812054828101116105f157600080fd5b600160a060020a033381166000818152600560209081526040808320948816808452949091529081902080548601908190557f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925915190815260200160405180910390a350600192915050565b600160a060020a03918216600090815260056020908152604080832093909416825291909152205490565b600080600160a060020a03841615156106a057600080fd5b600160a060020a038516600090815260046020526040902054839010156106c657600080fd5b600160a060020a038416600090815260046020526040902054838101116106ec57600080fd5b50600160a060020a0380841660008181526004602052604080822080549489168084528284208054898103909155938590528154880190915591909301927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9086905190815260200160405180910390a3600160a060020a0380851660009081526004602052604080822054928816825290205401811461078957fe5b5060019493505050505600a165627a7a72305820646a40dc46c85ec4b107b8ad5883c2cc4f871cf28f9ac123edc35658b78e168a00290000000000000000000000000000000000000000000000000000000083215600000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000000935746820436861696e000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000033554480000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6060604052600436106100ae5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100b3578063095ea7b31461013d57806318160ddd1461017357806323b872dd14610198578063313ce567146101c057806366188463146101e957806370a082311461020b57806395d89b411461022a578063a9059cbb1461023d578063d73dd6231461025f578063dd62ed3e14610281575b600080fd5b34156100be57600080fd5b6100c66102a6565b60405160208082528190810183818151815260200191508051906020019080838360005b838110156101025780820151838201526020016100ea565b50505050905090810190601f16801561012f5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561014857600080fd5b61015f600160a060020a0360043516602435610344565b604051901515815260200160405180910390f35b341561017e57600080fd5b6101866103b0565b60405190815260200160405180910390f35b34156101a357600080fd5b61015f600160a060020a03600435811690602435166044356103b6565b34156101cb57600080fd5b6101d361042b565b60405160ff909116815260200160405180910390f35b34156101f457600080fd5b61015f600160a060020a0360043516602435610434565b341561021657600080fd5b610186600160a060020a0360043516610522565b341561023557600080fd5b6100c661053d565b341561024857600080fd5b61015f600160a060020a03600435166024356105a8565b341561026a57600080fd5b61015f600160a060020a03600435166024356105bc565b341561028c57600080fd5b610186600160a060020a036004358116906024351661065d565b60008054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561033c5780601f106103115761010080835404028352916020019161033c565b820191906000526020600020905b81548152906001019060200180831161031f57829003601f168201915b505050505081565b600160a060020a03338116600081815260056020908152604080832094871680845294909152808220859055909291907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259085905190815260200160405180910390a350600192915050565b60035481565b600160a060020a038084166000908152600560209081526040808320339094168352929052908120548211156103eb57600080fd5b600160a060020a0380851660009081526005602090815260408083203390941683529290522080548390039055610423848484610688565b949350505050565b60025460ff1681565b600160a060020a0333811660009081526005602090815260408083209386168352929052908120548083111561049157600160a060020a0333811660009081526005602090815260408083209388168352929052908120556104bc565b600160a060020a03338116600090815260056020908152604080832093881683529290522083820390555b600160a060020a0333811660008181526005602090815260408083209489168084529490915290819020547f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925915190815260200160405180910390a35060019392505050565b600160a060020a031660009081526004602052604090205490565b60018054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561033c5780601f106103115761010080835404028352916020019161033c565b60006105b5338484610688565b9392505050565b600160a060020a033381166000908152600560209081526040808320938616835292905290812054828101116105f157600080fd5b600160a060020a033381166000818152600560209081526040808320948816808452949091529081902080548601908190557f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925915190815260200160405180910390a350600192915050565b600160a060020a03918216600090815260056020908152604080832093909416825291909152205490565b600080600160a060020a03841615156106a057600080fd5b600160a060020a038516600090815260046020526040902054839010156106c657600080fd5b600160a060020a038416600090815260046020526040902054838101116106ec57600080fd5b50600160a060020a0380841660008181526004602052604080822080549489168084528284208054898103909155938590528154880190915591909301927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9086905190815260200160405180910390a3600160a060020a0380851660009081526004602052604080822054928816825290205401811461078957fe5b5060019493505050505600a165627a7a72305820646a40dc46c85ec4b107b8ad5883c2cc4f871cf28f9ac123edc35658b78e168a0029
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000000000000000000000000000000000083215600000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000000935746820436861696e000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000033554480000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _initialSupply (uint256): 2200000000
Arg [1] : _tokenName (string): 5th Chain
Arg [2] : _tokenSymbol (string): 5TH
Arg [3] : _decimals (uint8): 18
-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000083215600
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000012
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000009
Arg [5] : 35746820436861696e0000000000000000000000000000000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [7] : 3554480000000000000000000000000000000000000000000000000000000000
Deployed Bytecode Sourcemap
28:4554:0:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;55:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;55:18:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3509:208;;;;;;;;;;-1:-1:-1;;;;;3509:208:0;;;;;;;;;;;;;;;;;;;;;;;;136:26;;;;;;;;;;;;;;;;;;;;;;;;;;;2966:274;;;;;;;;;;-1:-1:-1;;;;;2966:274:0;;;;;;;;;;;;107:22;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4120:459;;;;;;;;;;-1:-1:-1;;;;;4120:459:0;;;;;;;1129:106;;;;;;;;;;-1:-1:-1;;;;;1129:106:0;;;;;80:20;;;;;;;;;;;;2558:128;;;;;;;;;;-1:-1:-1;;;;;2558:128:0;;;;;;;3725:387;;;;;;;;;;-1:-1:-1;;;;;3725:387:0;;;;;;;1243:137;;;;;;;;;;-1:-1:-1;;;;;1243:137:0;;;;;;;;;;55:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;3509:208::-;-1:-1:-1;;;;;3603:10:0;3592:22;;3575:4;3592:22;;;:10;:22;;;;;;;;:32;;;;;;;;;;;;;:41;;;3575:4;;3592:32;:22;3649:38;;3627:6;;3649:38;;;;;;;;;;;;;-1:-1:-1;3705:4:0;3509:208;;;;:::o;136:26::-;;;;:::o;2966:274::-;-1:-1:-1;;;;;3082:17:0;;;3047:4;3082:17;;;:10;:17;;;;;;;;3100:10;3082:29;;;;;;;;;;;;3072:39;;;3064:48;;;;;;-1:-1:-1;;;;;3146:17:0;;;;;;;:10;:17;;;;;;;;3164:10;3146:29;;;;;;;;;:39;;;;;;;3203:29;3157:5;3220:3;3179:6;3203:9;:29::i;:::-;3196:36;2966:274;-1:-1:-1;;;;2966:274:0:o;107:22::-;;;;;;:::o;4120:459::-;-1:-1:-1;;;;;4247:10:0;4236:22;;4203:4;4236:22;;;:10;:22;;;;;;;;:32;;;;;;;;;;;;4283:27;;;4279:191;;;-1:-1:-1;;;;;4338:10:0;4327:22;;4362:1;4327:22;;;:10;:22;;;;;;;;:32;;;;;;;;;;;:36;4279:191;;;-1:-1:-1;;;;;4407:10:0;4396:22;;;;;;:10;:22;;;;;;;;:32;;;;;;;;;4431:27;;;4396:62;;4279:191;-1:-1:-1;;;;;4494:10:0;4485:64;;4516:22;;;;:10;:22;;;;;;;;4485:64;;;4516:32;;;;;;;;;;;;4485:64;;;;;;;;;;;;;;;-1:-1:-1;4567:4:0;;4120:459;-1:-1:-1;;;4120:459:0:o;1129:106::-;-1:-1:-1;;;;;1211:16:0;1184:7;1211:16;;;:8;:16;;;;;;;1129:106::o;80:20::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2558:128;2620:4;2644:34;2654:10;2666:3;2671:6;2644:9;:34::i;:::-;2637:41;2558:128;-1:-1:-1;;;2558:128:0:o;3725:387::-;-1:-1:-1;;;;;3920:10:0;3909:22;;3803:4;3909:22;;;:10;:22;;;;;;;;:32;;;;;;;;;;;;3860:46;;;:81;3852:90;;;;;;-1:-1:-1;;;;;3966:10:0;3955:22;;;;;;:10;:22;;;;;;;;:32;;;;;;;;;;;;;;:47;;;;;;;;4018:64;;;;;;;;;;;;;;;-1:-1:-1;4100:4:0;3725:387;;;;:::o;1243:137::-;-1:-1:-1;;;;;1344:18:0;;;1317:7;1344:18;;;:10;:18;;;;;;;;:28;;;;;;;;;;;;;1243:137::o;1469:878::-;1546:4;;-1:-1:-1;;;;;1635:17:0;;;;1627:26;;;;;;-1:-1:-1;;;;;1715:15:0;;;;;;:8;:15;;;;;;:25;;;;1707:34;;;;;;-1:-1:-1;;;;;1817:13:0;;;;;;:8;:13;;;;;;1792:22;;;:38;1784:47;;;;;;-1:-1:-1;;;;;;1937:13:0;;;;;;;:8;:13;;;;;;;;1919:15;;;;;;;;;;;1998:25;;;;;;2076:13;;;;:23;;;;;;;1919:31;;;;;2115:28;;2017:6;;2115:28;;;;;;;;;;;;;-1:-1:-1;;;;;2281:13:0;;;;;;;:8;:13;;;;;;;2263:15;;;;;;;;:31;:51;;2256:59;;;;-1:-1:-1;2335:4:0;;1469:878;-1:-1:-1;;;;1469:878:0:o
Swarm Source
bzzr://646a40dc46c85ec4b107b8ad5883c2cc4f871cf28f9ac123edc35658b78e168a
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.