Blockwell

QChi

ERC20

This contract is an ERC20 token.

Name QChi
Symbol QCH
Decimals 18
Total Supply 92,000,000 QCH

About link

QChi (QCH) is a cryptocurrency and operates on the Ethereum platform. QChi has a current supply of 92,000,000 with 32,756,239.83626295 in circulation. The last known price of QChi is 0.0192624 USD and is up 2.38 over the last 24 hours. It is currently trading on 3 active market(s) with $3,319.86 traded over the last 24 hours. More information can be found at http://qchi.mobi/.

Identical Contracts

The following contracts have identical source code.

Stats

Public Functions 7
Event Types 2
Code Size 2,600 bytes

Events (2) keyboard_arrow_up

Approval Event

Parameters help
_owner
address help
_spender
address help
_value
uint256 help

Transfer Event

Parameters help
_from
address help
_to
address help
_value
uint256 help

decimals Constant

uint8 help
18

symbol Variable

string help

name Variable

string help

_totalSupply Variable

uint256 help
Internal Variable

owner Variable

address help
Internal Variable

setupDone Variable

bool help
Internal Variable

balances Variable

mapping(address => uint256) help
Internal Variable

allowed Variable

mapping(address => mapping(address => uint256)) help
Internal Variable

Functions Expand All Collapse All

SetupToken keyboard_arrow_up

Parameters help

Name Type
tokenName
string help
tokenSymbol
string help
tokenSupply
uint256 help

Properties

Visibility help public
Mutability help transaction
Source Code
function SetupToken(
  string tokenName,
  string tokenSymbol,
  uint256 tokenSupply
) {
  if (msg.sender == owner && setupDone == false) {
    symbol = tokenSymbol;
    name = tokenName;
    _totalSupply = tokenSupply * 1000000000000000000;
    balances[owner] = _totalSupply;
    setupDone = true;
  }
}

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help constant
Source Code
function totalSupply() constant returns (uint256 totalSupply) {
  return _totalSupply;
}

Parameters help

Name Type
_owner
address help

Properties

Visibility help public
Mutability help constant
Source Code
function balanceOf(address _owner) constant returns (uint256 balance) {
  return balances[_owner];
}

Parameters help

Name Type
_to
address help
_amount
uint256 help

Properties

Visibility help public
Mutability help transaction
Source Code
function transfer(address _to, uint256 _amount) returns (bool success) {
  if (
    balances[msg.sender] >= _amount &&
    _amount > 0 &&
    balances[_to] + _amount > balances[_to]
  ) {
    balances[msg.sender] -= _amount;
    balances[_to] += _amount;
    Transfer(msg.sender, _to, _amount);
    return true;
  } else {
    return false;
  }
}

Parameters help

Name Type
_from
address help
_to
address help
_amount
uint256 help

Properties

Visibility help public
Mutability help transaction
Source Code
function transferFrom(
  address _from,
  address _to,
  uint256 _amount
) returns (bool success) {
  if (
    balances[_from] >= _amount &&
    allowed[_from][msg.sender] >= _amount &&
    _amount > 0 &&
    balances[_to] + _amount > balances[_to]
  ) {
    balances[_from] -= _amount;
    allowed[_from][msg.sender] -= _amount;
    balances[_to] += _amount;
    Transfer(_from, _to, _amount);
    return true;
  } else {
    return false;
  }
}

Parameters help

Name Type
_spender
address help
_amount
uint256 help

Properties

Visibility help public
Mutability help transaction
Source Code
function approve(address _spender, uint256 _amount) returns (bool success) {
  allowed[msg.sender][_spender] = _amount;
  Approval(msg.sender, _spender, _amount);
  return true;
}

Parameters help

Name Type
_owner
address help
_spender
address help

Properties

Visibility help public
Mutability help constant
Source Code
function allowance(address _owner, address _spender)
  constant
  returns (uint256 remaining)
{
  return allowed[_owner][_spender];
}

Internal Functions Expand All Collapse All

Internal functions are parts of the contract that can't be used directly, but instead are used by the public functions listed above.