ETH Price: $1,862.46 (-5.66%)
 

Overview

Max Total Supply

1,000,000,000,000 IRR

Holders

2

Transfers

-
0

Market

Onchain Market Cap

-

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 0 Decimals)

Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
MyAdvancedToken

Compiler Version
v0.3.5-2016-07-19-427deb4

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
/**
 *Submitted for verification at Etherscan.io on 2016-07-21
*/

contract owned {
    address public owner;

    function owned() {
        owner = msg.sender;
    }

    modifier onlyOwner {
        if (msg.sender != owner) throw;
        _
    }

    function transferOwnership(address newOwner) onlyOwner {
        owner = newOwner;
    }
}

contract tokenRecipient { function receiveApproval(address _from, uint256 _value, address _token, bytes _extraData); }

contract token {
    /* Public variables of the token */
    string public standard = 'Token 0.1';
    string public name;
    string public symbol;
    uint8 public decimals;
    uint256 public totalSupply;

    /* This creates an array with all balances */
    mapping (address => uint256) public balanceOf;
    mapping (address => mapping (address => uint256)) public allowance;

    /* This generates a public event on the blockchain that will notify clients */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /* Initializes contract with initial supply tokens to the creator of the contract */
    function token(
        uint256 initialSupply,
        string tokenName,
        uint8 decimalUnits,
        string tokenSymbol
        ) {
        balanceOf[msg.sender] = initialSupply;              // Give the creator all initial tokens
        totalSupply = initialSupply;                        // Update total supply
        name = tokenName;                                   // Set the name for display purposes
        symbol = tokenSymbol;                               // Set the symbol for display purposes
        decimals = decimalUnits;                            // Amount of decimals for display purposes
    }

    /* Send coins */
    function transfer(address _to, uint256 _value) {
        if (balanceOf[msg.sender] < _value) throw;           // Check if the sender has enough
        if (balanceOf[_to] + _value < balanceOf[_to]) throw; // Check for overflows
        balanceOf[msg.sender] -= _value;                     // Subtract from the sender
        balanceOf[_to] += _value;                            // Add the same to the recipient
        Transfer(msg.sender, _to, _value);                   // Notify anyone listening that this transfer took place
    }

    /* Allow another contract to spend some tokens in your behalf */
    function approveAndCall(address _spender, uint256 _value, bytes _extraData)
        returns (bool success) {
        allowance[msg.sender][_spender] = _value;
        tokenRecipient spender = tokenRecipient(_spender);
        spender.receiveApproval(msg.sender, _value, this, _extraData);
        return true;
    }

    /* A contract attempts to get the coins */
    function transferFrom(address _from, address _to, uint256 _value) returns (bool success) {
        if (balanceOf[_from] < _value) throw;                 // Check if the sender has enough
        if (balanceOf[_to] + _value < balanceOf[_to]) throw;  // Check for overflows
        if (_value > allowance[_from][msg.sender]) throw;   // Check allowance
        balanceOf[_from] -= _value;                          // Subtract from the sender
        balanceOf[_to] += _value;                            // Add the same to the recipient
        allowance[_from][msg.sender] -= _value;
        Transfer(_from, _to, _value);
        return true;
    }

    /* This unnamed function is called whenever someone tries to send ether to it */
    function () {
        throw;     // Prevents accidental sending of ether
    }
}

contract MyAdvancedToken is owned, token {

    uint256 public totalSupply;

    mapping (address => bool) public frozenAccount;

    /* This generates a public event on the blockchain that will notify clients */
    event FrozenFunds(address target, bool frozen);

    /* Initializes contract with initial supply tokens to the creator of the contract */
    function MyAdvancedToken(
        uint256 initialSupply,
        string tokenName,
        uint8 decimalUnits,
        string tokenSymbol,
        address centralMinter
    ) token (initialSupply, tokenName, decimalUnits, tokenSymbol) {
        if(centralMinter != 0 ) owner = centralMinter;      // Sets the owner as specified (if centralMinter is not specified the owner is msg.sender)
        balanceOf[owner] = initialSupply;                   // Give the owner all initial tokens
    }

    /* Send coins */
    function transfer(address _to, uint256 _value) {
        if (balanceOf[msg.sender] < _value) throw;           // Check if the sender has enough
        if (balanceOf[_to] + _value < balanceOf[_to]) throw; // Check for overflows
        if (frozenAccount[msg.sender]) throw;                // Check if frozen
        balanceOf[msg.sender] -= _value;                     // Subtract from the sender
        balanceOf[_to] += _value;                            // Add the same to the recipient
        Transfer(msg.sender, _to, _value);                   // Notify anyone listening that this transfer took place
    }


    /* A contract attempts to get the coins */
    function transferFrom(address _from, address _to, uint256 _value) returns (bool success) {
        if (frozenAccount[_from]) throw;                        // Check if frozen            
        if (balanceOf[_from] < _value) throw;                 // Check if the sender has enough
        if (balanceOf[_to] + _value < balanceOf[_to]) throw;  // Check for overflows
        if (_value > allowance[_from][msg.sender]) throw;   // Check allowance
        balanceOf[_from] -= _value;                          // Subtract from the sender
        balanceOf[_to] += _value;                            // Add the same to the recipient
        allowance[_from][msg.sender] -= _value;
        Transfer(_from, _to, _value);
        return true;
    }

    function mintToken(address target, uint256 mintedAmount) onlyOwner {
        balanceOf[target] += mintedAmount;
        totalSupply += mintedAmount;
        Transfer(0, owner, mintedAmount);
        Transfer(owner, target, mintedAmount);
    }

    function freezeAccount(address target, bool freeze) onlyOwner {
        frozenAccount[target] = freeze;
        FrozenFunds(target, freeze);
    }

}

Contract Security Audit

Contract ABI

API
[{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"success","type":"bool"}],"type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"type":"function"},{"constant":true,"inputs":[],"name":"standard","outputs":[{"name":"","type":"string"}],"type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"balanceOf","outputs":[{"name":"","type":"uint256"}],"type":"function"},{"constant":false,"inputs":[{"name":"target","type":"address"},{"name":"mintedAmount","type":"uint256"}],"name":"mintToken","outputs":[],"type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transfer","outputs":[],"type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"frozenAccount","outputs":[{"name":"","type":"bool"}],"type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"},{"name":"_extraData","type":"bytes"}],"name":"approveAndCall","outputs":[{"name":"success","type":"bool"}],"type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"},{"name":"","type":"address"}],"name":"allowance","outputs":[{"name":"","type":"uint256"}],"type":"function"},{"constant":false,"inputs":[{"name":"target","type":"address"},{"name":"freeze","type":"bool"}],"name":"freezeAccount","outputs":[],"type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"type":"function"},{"inputs":[{"name":"initialSupply","type":"uint256"},{"name":"tokenName","type":"string"},{"name":"decimalUnits","type":"uint8"},{"name":"tokenSymbol","type":"string"},{"name":"centralMinter","type":"address"}],"type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"name":"target","type":"address"},{"indexed":false,"name":"frozen","type":"bool"}],"name":"FrozenFunds","type":"event"},{"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"}]

60a060405260096060527f546f6b656e20302e3100000000000000000000000000000000000000000000006080526001805460008290527f546f6b656e20302e31000000000000000000000000000000000000000000001282556100b4907fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf66020600283861615610100026000190190931692909204601f01919091048101905b8082111561019757600081556001016100a0565b5050604051610b62380380610b62833981016040528080519060200190919080518201919060200180519060200190919080518201919060200180519060200190919050508484848460008054600160a060020a03191633179055836006600050600033600160a060020a0316815260200190815260200160002060005081905550836005600050819055508260026000509080519060200190828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061019b57805160ff19168380011785555b506101cb9291506100a0565b5090565b8280016001018555821561018b579182015b8281111561018b5782518260005055916020019190600101906101ad565b50508060036000509080519060200190828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061022457805160ff19168380011785555b506102549291506100a0565b82800160010185558215610218579182015b82811115610218578251826000505591602001919060010190610236565b50506004805460ff19168317905550505050600160a060020a03811660001461028a5760008054600160a060020a031916821790555b60008054600160a060020a0316815260066020526040902085905550505050506108aa806102b86000396000f3606060405236156100b95760e060020a600035046306fdde0381146100c157806318160ddd1461011b57806323b872dd14610124578063313ce567146101565780635a3b7e421461016257806370a08231146101be57806379c65068146101d65780638da5cb5b146101fa57806395d89b411461020c578063a9059cbb14610269578063b414d4b614610298578063cae9ca51146102b3578063dd62ed3e14610419578063e724529c1461043e578063f2fde38b14610462575b610483610002565b61048560028054602060018216156101000260001901909116829004601f8101829004909102608090810160405260608281529291908282801561053c5780601f106105115761010080835404028352916020019161053c565b6104f360085481565b6104fd600435602435604435600160a060020a03831660009081526009602052604081205460ff161561054457610002565b6104f360045460ff1681565b610485600180546020600282841615610100026000190190921691909104601f8101829004909102608090810160405260608281529291908282801561053c5780601f106105115761010080835404028352916020019161053c565b6104f360043560066020526000908152604090205481565b61048360043560243560005433600160a060020a0390811691161461069857610002565b6104f3600054600160a060020a031681565b61048560038054602060026001831615610100026000190190921691909104601f8101829004909102608090810160405260608281529291908282801561053c5780601f106105115761010080835404028352916020019161053c565b61048360043560243533600160a060020a03166000908152600660205260409020548190101561072f57610002565b6104fd60043560096020526000908152604090205460ff1681565b6020604435600481810135601f8101849004909302608090810160405260608481526104fd948335946024803595946064949392909101919081908382808284375094965050505050505060006000836007600050600033600160a060020a03168152602001908152602001600020600050600087600160a060020a031681526020019081526020016000206000508190555084905080600160a060020a0316638f4ffcb1338630876040518560e060020a0281526004018085600160a060020a0316815260200184815260200183600160a060020a03168152602001806020018281038252838181518152602001915080519060200190808383829060006004602084601f0104600f02600301f150905090810190601f1680156103ec5780820380516001836020036101000a031916815260200191505b50955050505050506000604051808303816000876161da5a03f11561000257506001979650505050505050565b6007602090815260043560009081526040808220909252602435815220546104f39081565b61048360043560243560005433600160a060020a0390811691161461081257610002565b61048360043560005433600160a060020a0390811691161461086857610002565b005b60405180806020018281038252838181518152602001915080519060200190808383829060006004602084601f0104600f02600301f150905090810190601f1680156104e55780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6060908152602090f35b604080519115158252519081900360200190f35b820191906000526020600020905b81548152906001019060200180831161051f57829003601f168201915b505050505081565b600660205260408120548290101561055b57610002565b600160a060020a03831681526040812054828101101561057a57610002565b600160a060020a0380851682526007602090815260408084203390931684529190528120548211156105ab57610002565b816006600050600086600160a060020a03168152602001908152602001600020600082828250540392505081905550816006600050600085600160a060020a03168152602001908152602001600020600082828250540192505081905550816007600050600086600160a060020a03168152602001908152602001600020600050600033600160a060020a0316815260200190815260200160002060008282825054039250508190555082600160a060020a031684600160a060020a031660008051602061088a833981519152846040518082815260200191505060405180910390a35060019392505050565b600160a060020a038083166000908152600660209081526040822080548501905560088054850190558154606085815293169260008051602061088a8339815191529190a381600160a060020a0316600060009054906101000a9004600160a060020a0316600160a060020a031660008051602061088a833981519152836040518082815260200191505060405180910390a35050565b600160a060020a03821660009081526040902054808201101561075157610002565b33600160a060020a031660009081526009602052604090205460ff161561077757610002565b806006600050600033600160a060020a03168152602001908152602001600020600082828250540392505081905550806006600050600084600160a060020a0316815260200190815260200160002060008282825054019250508190555081600160a060020a031633600160a060020a031660008051602061088a833981519152836040518082815260200191505060405180910390a35050565b600160a060020a03821660008181526009602052604090819020805460ff19168417905560609182528215156080527f48335238b4855f35377ed80f164e8c6f3c366e54ac00b96a6402d4a9814a03a591a15050565b6000805473ffffffffffffffffffffffffffffffffffffffff1916821790555056ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef

Deployed Bytecode

0x606060405236156100b95760e060020a600035046306fdde0381146100c157806318160ddd1461011b57806323b872dd14610124578063313ce567146101565780635a3b7e421461016257806370a08231146101be57806379c65068146101d65780638da5cb5b146101fa57806395d89b411461020c578063a9059cbb14610269578063b414d4b614610298578063cae9ca51146102b3578063dd62ed3e14610419578063e724529c1461043e578063f2fde38b14610462575b610483610002565b61048560028054602060018216156101000260001901909116829004601f8101829004909102608090810160405260608281529291908282801561053c5780601f106105115761010080835404028352916020019161053c565b6104f360085481565b6104fd600435602435604435600160a060020a03831660009081526009602052604081205460ff161561054457610002565b6104f360045460ff1681565b610485600180546020600282841615610100026000190190921691909104601f8101829004909102608090810160405260608281529291908282801561053c5780601f106105115761010080835404028352916020019161053c565b6104f360043560066020526000908152604090205481565b61048360043560243560005433600160a060020a0390811691161461069857610002565b6104f3600054600160a060020a031681565b61048560038054602060026001831615610100026000190190921691909104601f8101829004909102608090810160405260608281529291908282801561053c5780601f106105115761010080835404028352916020019161053c565b61048360043560243533600160a060020a03166000908152600660205260409020548190101561072f57610002565b6104fd60043560096020526000908152604090205460ff1681565b6020604435600481810135601f8101849004909302608090810160405260608481526104fd948335946024803595946064949392909101919081908382808284375094965050505050505060006000836007600050600033600160a060020a03168152602001908152602001600020600050600087600160a060020a031681526020019081526020016000206000508190555084905080600160a060020a0316638f4ffcb1338630876040518560e060020a0281526004018085600160a060020a0316815260200184815260200183600160a060020a03168152602001806020018281038252838181518152602001915080519060200190808383829060006004602084601f0104600f02600301f150905090810190601f1680156103ec5780820380516001836020036101000a031916815260200191505b50955050505050506000604051808303816000876161da5a03f11561000257506001979650505050505050565b6007602090815260043560009081526040808220909252602435815220546104f39081565b61048360043560243560005433600160a060020a0390811691161461081257610002565b61048360043560005433600160a060020a0390811691161461086857610002565b005b60405180806020018281038252838181518152602001915080519060200190808383829060006004602084601f0104600f02600301f150905090810190601f1680156104e55780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6060908152602090f35b604080519115158252519081900360200190f35b820191906000526020600020905b81548152906001019060200180831161051f57829003601f168201915b505050505081565b600660205260408120548290101561055b57610002565b600160a060020a03831681526040812054828101101561057a57610002565b600160a060020a0380851682526007602090815260408084203390931684529190528120548211156105ab57610002565b816006600050600086600160a060020a03168152602001908152602001600020600082828250540392505081905550816006600050600085600160a060020a03168152602001908152602001600020600082828250540192505081905550816007600050600086600160a060020a03168152602001908152602001600020600050600033600160a060020a0316815260200190815260200160002060008282825054039250508190555082600160a060020a031684600160a060020a031660008051602061088a833981519152846040518082815260200191505060405180910390a35060019392505050565b600160a060020a038083166000908152600660209081526040822080548501905560088054850190558154606085815293169260008051602061088a8339815191529190a381600160a060020a0316600060009054906101000a9004600160a060020a0316600160a060020a031660008051602061088a833981519152836040518082815260200191505060405180910390a35050565b600160a060020a03821660009081526040902054808201101561075157610002565b33600160a060020a031660009081526009602052604090205460ff161561077757610002565b806006600050600033600160a060020a03168152602001908152602001600020600082828250540392505081905550806006600050600084600160a060020a0316815260200190815260200160002060008282825054019250508190555081600160a060020a031633600160a060020a031660008051602061088a833981519152836040518082815260200191505060405180910390a35050565b600160a060020a03821660008181526009602052604090819020805460ff19168417905560609182528215156080527f48335238b4855f35377ed80f164e8c6f3c366e54ac00b96a6402d4a9814a03a591a15050565b6000805473ffffffffffffffffffffffffffffffffffffffff1916821790555056ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000b12d0febcc0050ee819cd5f4b173ef04d460bc2c0000000000000000000000000000000000000000000000000000000000000009655269616c2e6f7267000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000034952520000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : initialSupply (uint256): 0
Arg [1] : tokenName (string): eRial.org
Arg [2] : decimalUnits (uint8): 0
Arg [3] : tokenSymbol (string): IRR
Arg [4] : centralMinter (address): 0xb12d0FEbCc0050ee819cd5F4b173eF04D460BC2C

-----Encoded View---------------
9 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [3] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [4] : 000000000000000000000000b12d0febcc0050ee819cd5f4b173ef04d460bc2c
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000009
Arg [6] : 655269616c2e6f72670000000000000000000000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [8] : 4952520000000000000000000000000000000000000000000000000000000000


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.