Address Contract Partially Verified
Address
0x8DB90E3e7D04C875a51997092f9178FCac9DefdB
Balance
0 ETH
Nonce
1
Code Size
1791 bytes
Creator
0x6f3fbD06...30e0 at tx 0xa4b8523c...5cbb06
Last Active
Indexed Transactions
16 (10,633,976 → 10,691,802)
Gas Used (indexed)
453,466
Contract Bytecode
1791 bytes
0x6060604052600436106100cf5763ffffffff7c0100000000000000000000000000000000000000000000000000000000600035041663047fc9aa81146100d457806306fdde03146100f9578063095ea7b31461018357806317634514146101b957806318160ddd146101cc57806323b872dd146101df57806329ba7bb214610207578063313ce5671461023657806354fd4d501461025f57806370a082311461027257806395d89b4114610291578063a9059cbb146102a4578063d8270dce146102c6578063dd62ed3e146102d9575b600080fd5b34156100df57600080fd5b6100e76102fe565b60405190815260200160405180910390f35b341561010457600080fd5b61010c610304565b60405160208082528190810183818151815260200191508051906020019080838360005b83811015610148578082015183820152602001610130565b50505050905090810190601f1680156101755780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561018e57600080fd5b6101a5600160a060020a03600435166024356103a2565b604051901515815260200160405180910390f35b34156101c457600080fd5b6100e761042e565b34156101d757600080fd5b6100e7610434565b34156101ea57600080fd5b6101a5600160a060020a036004358116906024351660443561043a565b341561021257600080fd5b61021a6104cf565b604051600160a060020a03909116815260200160405180910390f35b341561024157600080fd5b6102496104de565b60405160ff909116815260200160405180910390f35b341561026a57600080fd5b61010c6104e7565b341561027d57600080fd5b6100e7600160a060020a0360043516610552565b341561029c57600080fd5b61010c61056d565b34156102af57600080fd5b6101a5600160a060020a03600435166024356105d8565b34156102d157600080fd5b6100e76105e5565b34156102e457600080fd5b6100e7600160a060020a03600435811690602435166105eb565b60015481565b60028054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561039a5780601f1061036f5761010080835404028352916020019161039a565b820191906000526020600020905b81548152906001019060200180831161037d57829003601f168201915b505050505081565b600081158015906103bb57506103b833846105eb565b15155b156103c557600080fd5b600160a060020a03338116600081815260096020908152604080832094881680845294909152908190208590557f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259085905190815260200160405180910390a350600192915050565b60065481565b60015490565b60008161044785336105eb565b101561045257600080fd5b600160a060020a038085166000908152600960209081526040808320339094168352929052208054839003905561048a848484610616565b15156104c45750600160a060020a0380841660009081526009602090815260408083203390941683529290529081208054830190556104c8565b5060015b9392505050565b600054600160a060020a031681565b60035460ff1681565b60058054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561039a5780601f1061036f5761010080835404028352916020019161039a565b600160a060020a031660009081526008602052604090205490565b60048054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561039a5780601f1061036f5761010080835404028352916020019161039a565b60006104c8338484610616565b60075481565b600160a060020a03918216600090815260096020908152604080832093909416825291909152205490565b600160a060020a0383166000908152600860205260408120548290108015906106595750600160a060020a03831660009081526008602052604090205482810110155b156106cb57600160a060020a038085166000818152600860205260408082208054879003905592861680825290839020805486019055917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a35060016104c8565b5060006104c85600a165627a7a72305820fb5992e0d07629bc7a527e95680be3c6dc70c9dfd0024baed557677617eb9b1d0029
Verified Source Code Partial Match
Compiler: v0.4.21-nightly.2018.3.7+commit.bd7bc7c4
EVM: byzantium
Optimization: Yes (200 runs)
PortalToken.sol 113 lines
pragma solidity ^0.4.18;
// https://github.com/ethereum/wiki/wiki/Standardized_Contract_APIs#transferable-fungibles-see-erc-20-for-the-latest
contract ERC20Token {
// Triggered when tokens are transferred.
event Transfer(address indexed _from, address indexed _to, uint256 _value);
// Triggered whenever approve(address _spender, uint256 _value) is called.
event Approval(address indexed _owner, address indexed _spender, uint256 _value);
// Get the total token supply
function totalSupply() constant public returns (uint256 supply);
// Get the account `balance` of another account with address `_owner`
function balanceOf(address _owner) constant public returns (uint256 balance);
// Send `_value` amount of tokens to address `_to`
function transfer(address _to, uint256 _value) public returns (bool success);
// Send `_value` amount of tokens from address `_from` to address `_to`
// The `transferFrom` method is used for a withdraw workflow, allowing contracts to send tokens on your behalf,
// for example to "deposit" to a contract address and/or to charge fees in sub-currencies;
// the command should fail unless the `_from` account has deliberately authorized the sender of the message
// via some mechanism; we propose these standardized APIs for `approval`:
function transferFrom(address _from, address _to, uint256 _value) public returns (bool success);
// Allow _spender to withdraw from your account, multiple times, up to the _value amount.
// If this function is called again it overwrites the current allowance with _value.
function approve(address _spender, uint256 _value) public returns (bool success);
// Returns the amount which _spender is still allowed to withdraw from _owner
function allowance(address _owner, address _spender) constant public returns (uint256 remaining);
}
contract PortalToken is ERC20Token {
address public initialOwner;
uint256 public supply = 1000000000 * 10 ** 18; // 1,000,000,000
string public name = 'PortalToken';
uint8 public decimals = 18;
string public symbol = 'PORTAL';
string public version = 'v0.2';
uint public creationBlock;
uint public creationTime;
mapping (address => uint256) balance;
mapping (address => mapping (address => uint256)) m_allowance;
event Transfer(address indexed _from, address indexed _to, uint256 _value);
event Approval(address indexed _owner, address indexed _spender, uint256 _value);
function PortalToken() public{
initialOwner = msg.sender;
balance[msg.sender] = supply;
creationBlock = block.number;
creationTime = block.timestamp;
}
function balanceOf(address _account) constant public returns (uint) {
return balance[_account];
}
function totalSupply() constant public returns (uint) {
return supply;
}
function transfer(address _to, uint256 _value) public returns (bool success) {
// `revert()` | `throw`
// http://solidity.readthedocs.io/en/develop/control-structures.html#error-handling-assert-require-revert-and-exceptions
// https://ethereum.stackexchange.com/questions/20978/why-do-throw-and-revert-create-different-bytecodes/20981
return doTransfer(msg.sender, _to, _value);
}
function transferFrom(address _from, address _to, uint256 _value) public returns (bool) {
if (allowance(_from, msg.sender) < _value) revert();
m_allowance[_from][msg.sender] -= _value;
if ( !(doTransfer(_from, _to, _value)) ) {
m_allowance[_from][msg.sender] += _value;
return false;
} else {
return true;
}
}
function doTransfer(address _from, address _to, uint _value) internal returns (bool success) {
if (balance[_from] >= _value && balance[_to] + _value >= balance[_to]) {
balance[_from] -= _value;
balance[_to] += _value;
emit Transfer(_from, _to, _value);
return true;
} else {
return false;
}
}
function approve(address _spender, uint256 _value) public returns (bool success) {
// https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
if ( (_value != 0) && (allowance(msg.sender, _spender) != 0) ) revert();
m_allowance[msg.sender][_spender] = _value;
emit Approval(msg.sender, _spender, _value);
return true;
}
function allowance(address _owner, address _spender) constant public returns (uint256) {
return m_allowance[_owner][_spender];
}
}
Read Contract
allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
creationBlock 0x17634514 → uint256
creationTime 0xd8270dce → uint256
decimals 0x313ce567 → uint8
initialOwner 0x29ba7bb2 → address
name 0x06fdde03 → string
supply 0x047fc9aa → uint256
symbol 0x95d89b41 → string
totalSupply 0x18160ddd → uint256
version 0x54fd4d50 → string
Write Contract 3 functions
These functions modify contract state and require a wallet transaction to execute.
approve 0x095ea7b3
address _spender
uint256 _value
returns: bool
transfer 0xa9059cbb
address _to
uint256 _value
returns: bool
transferFrom 0x23b872dd
address _from
address _to
uint256 _value
returns: bool
Top Interactions
| Address | Txns | Sent | Received |
|---|---|---|---|
| 0x0c6C34CD...4eeC | 3 | 3 | |
| 0x83d8dB37...5ba9 | 1 | 1 | |
| 0x6748F50f...ff2b | 1 | 1 | |
| 0xadB2B42F...6f94 | 1 | 1 | |
| 0x58cC89c3...4b5A | 1 | 1 | |
| 0x8705CcFd...0B94 | 1 | 1 | |
| 0xFA4B5Be3...2c58 | 1 | 1 | |
| 0x5C985E89...829B | 1 | 1 |
Recent Transactions
|
| Hash | Block | Age | From/To | Value | |
|---|---|---|---|---|---|
| 0x60614b63...bfe894 | 10,691,802 | IN | 0x6748F50f...ff2b | 0 ETH | |
| 0x8b93636e...eacda0 | 10,659,967 | IN | 0x0c6C34CD...4eeC | 0 ETH | |
| 0x7b8b60b8...bc00ca | 10,653,301 | IN | 0x83d8dB37...5ba9 | 0 ETH | |
| 0x530b5924...e9c8e9 | 10,653,067 | IN | 0x58cC89c3...4b5A | 0 ETH | |
| 0xe6295033...267011 | 10,652,878 | IN | 0x5C985E89...829B | 0 ETH | |
| 0x908a68cb...d5e50e | 10,647,013 | IN | 0x8705CcFd...0B94 | 0 ETH | |
| 0x4f89391d...7bb602 | 10,646,939 | IN | 0x0c6C34CD...4eeC | 0 ETH | |
| 0xdc15a4a2...e252da | 10,646,846 | IN | 0xadB2B42F...6f94 | 0 ETH | |
| 0xdfcd97bd...9d5c92 | 10,646,796 | IN | 0xFA4B5Be3...2c58 | 0 ETH | |
| 0x28db19cb...11b951 | 10,633,976 | IN | 0x0c6C34CD...4eeC | 0 ETH |