Stats
Public Functions
2
Event Types
2
Code Size
2,857 bytes
Events (2)
keyboard_arrow_up
Burn
Event
Parameters
help
Event parameters list the data that an event contains.
from 
address help
The type of this value is address, which means it stores an Ethereum address, such as a wallet address.

value 
uint256 help
The type of this value is uint, which stands for unsigned integer. Integer means it's a whole number (such as 1, 12, 52) without fractions or decimals. Unsigned means it can't have a negative or positive sign, so it's always a positive number.

Transfer
Event
Parameters
help
Event parameters list the data that an event contains.
from 
address help
The type of this value is address, which means it stores an Ethereum address, such as a wallet address.

to 
address help
The type of this value is address, which means it stores an Ethereum address, such as a wallet address.

value 
uint256 help
The type of this value is uint, which stands for unsigned integer. Integer means it's a whole number (such as 1, 12, 52) without fractions or decimals. Unsigned means it can't have a negative or positive sign, so it's always a positive number.

State Variables (6)
keyboard_arrow_up
name
Variable
string
help
The type of this value is string, which is basically just plain text. It's called a string because it is a 'string' of letters.
symbol
Variable
string
help
The type of this value is string, which is basically just plain text. It's called a string because it is a 'string' of letters.
decimals
Variable
uint8
help
The type of this value is uint, which stands for unsigned integer. Integer means it's a whole number (such as 1, 12, 52) without fractions or decimals. Unsigned means it can't have a negative or positive sign, so it's always a positive number.
totalSupply
Variable
uint256
help
The type of this value is uint, which stands for unsigned integer. Integer means it's a whole number (such as 1, 12, 52) without fractions or decimals. Unsigned means it can't have a negative or positive sign, so it's always a positive number.
balanceOf
Variable
mapping(address => uint256)
help
The type of this value is other.
allowance
Variable
mapping(address => mapping(address => uint256))
help
The type of this value is other.
transfer
keyboard_arrow_up
Parameters
help
Function parameters list what input the function expects from the user. Each
parameter must be given a value.
Name 
Type 
_to 
address help
The type of this value is address, which means it stores an Ethereum address, such as a wallet address.

_value 
uint256 help
The type of this value is uint, which stands for unsigned integer. Integer means it's a whole number (such as 1, 12, 52) without fractions or decimals. Unsigned means it can't have a negative or positive sign, so it's always a positive number.

Properties
Visibility
help
Visibility determines if the function is visible to users and other contracts.
Only functions that are public can be used.
public
Mutability
help
Mutability tells you if a function can make changes on the blockchain.
View means the function can be called by anyone without
a wallet and without submitting a transaction.
transaction
Requirements
help
Requirements are checks that the function makes when it runs, and give you
insight on what conditions are required for the function to succeed.
Source Code
function transfer(address _to, uint256 _value) {
_transfer(msg.sender, _to, _value);
}
burn
keyboard_arrow_up
Parameters
help
Function parameters list what input the function expects from the user. Each
parameter must be given a value.
Name 
Type 
_value 
uint256 help
The type of this value is uint, which stands for unsigned integer. Integer means it's a whole number (such as 1, 12, 52) without fractions or decimals. Unsigned means it can't have a negative or positive sign, so it's always a positive number.

Properties
Visibility
help
Visibility determines if the function is visible to users and other contracts.
Only functions that are public can be used.
public
Mutability
help
Mutability tells you if a function can make changes on the blockchain.
View means the function can be called by anyone without
a wallet and without submitting a transaction.
transaction
Requirements
help
Requirements are checks that the function makes when it runs, and give you
insight on what conditions are required for the function to succeed.
Source Code
function burn(uint256 _value) returns (bool success) {
require(balanceOf[msg.sender] > _value); // Check if the sender has enough
balanceOf[msg.sender] = _value; // Subtract from the sender
totalSupply = _value; // Updates totalSupply
Burn(msg.sender, _value);
return true;
}
Internal functions are parts of the contract that can't be used directly, but instead are used by
the public functions listed above.
internal MyToken._transfer
keyboard_arrow_up
Parameters
help
Function parameters list what input the function expects from the user. Each
parameter must be given a value.
Name 
Type 
_from 
address help
The type of this value is address, which means it stores an Ethereum address, such as a wallet address.

_to 
address help
The type of this value is address, which means it stores an Ethereum address, such as a wallet address.

_value 
uint help
The type of this value is uint, which stands for unsigned integer. Integer means it's a whole number (such as 1, 12, 52) without fractions or decimals. Unsigned means it can't have a negative or positive sign, so it's always a positive number.

Properties
Visibility
help
Visibility determines if the function is visible to users and other contracts.
Only functions that are public can be used.
internal
Mutability
help
Mutability tells you if a function can make changes on the blockchain.
View means the function can be called by anyone without
a wallet and without submitting a transaction.
transaction
Requirements
help
Requirements are checks that the function makes when it runs, and give you
insight on what conditions are required for the function to succeed.
Source Code
function _transfer(
address _from,
address _to,
uint256 _value
) internal {
require(_to != 0x0); // Prevent transfer to 0x0 address. Use burn() instead
require(balanceOf[_from] > _value); // Check if the sender has enough
require(balanceOf[_to] + _value > balanceOf[_to]); // Check for overflows
balanceOf[_from] = _value; // Subtract from the sender
balanceOf[_to] += _value; // Add the same to the recipient
Transfer(_from, _to, _value);
}