Blockwell

DRAGON

ERC20

This contract is an ERC20 token.

Name DRAGON
Symbol DRG
Decimals 8
Total Supply 442,695,970 DRG

About link

Dragon Coins (DRG) is a cryptocurrency token and operates on the Ethereum platform. Dragon Coins has a current supply of 442,695,970.071 with 348,657,484.018 in circulation. The last known price of Dragon Coins is $0.029843 USD and is up 3.88% over the last 24 hours. It is currently trading on 4 active market(s) with $783.31 traded over the last 24 hours. More information can be found at https://drgtoken.io/.

Stats

Public Functions 14
Event Types 4
Code Size 6,042 bytes

Approval Event

Parameters help
owner
address help
spender
address help
value
uint256 help

Approval Event

Parameters help
_owner
address help
spender
address help
value
uint help

Burn Event

Parameters help
from
address help
value
uint256 help

Transfer Event

Parameters help
from
address help
to
address help
value
uint256 help

Functions Expand All Collapse All

totalSupply keyboard_arrow_up

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help constant
Source Code
    function totalSupply() constant returns(uint256) {

        return totalSupply;
    }

balanceOf keyboard_arrow_up

Parameters help

Name Type
tokenHolder
address help

Properties

Visibility help public
Mutability help constant
Source Code
    function balanceOf(address tokenHolder) constant returns(uint256) {

        return balanceOf[tokenHolder];
    }

transfer keyboard_arrow_up

Parameters help

Name Type
_to
address help
_value
uint256 help

Properties

Visibility help public
Mutability help transaction
Source Code
    function transfer(address _to, uint256 _value) returns(bool ok) {
   
        if (balanceOf[msg.sender] < _value) throw; 
        if (balanceOf[_to] + _value < balanceOf[_to]) throw;
        
        appendTokenHolders(_to);
        balanceOf[msg.sender] -= _value; 
        balanceOf[_to] += _value; 
        Transfer(msg.sender, _to, _value); 
        burnCheck( _to, _value );
        
        return true;
    }

transferFrom keyboard_arrow_up

Parameters help

Name Type
_from
address help
_to
address help
_value
uint256 help

Properties

Visibility help public
Mutability help transaction

Requirements help

Source Code
    function transferFrom(address _from, address _to, uint256 _value) returns(bool success) {
     
        if (balanceOf[_from] < _value) throw;  
        if (balanceOf[_to] + _value < balanceOf[_to]) throw;  
        if (_value > allowance[_from][msg.sender]) throw; 
        appendTokenHolders(_to);
        balanceOf[_from] -= _value; 
        balanceOf[_to] += _value; 
        allowance[_from][msg.sender] -= _value;
        Transfer(_from, _to, _value);
       
        return true;
    }

approve keyboard_arrow_up

Parameters help

Name Type
_spender
address help
_value
uint256 help

Properties

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

allowance keyboard_arrow_up

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 allowance[_owner][_spender];
    }

changeOwnership keyboard_arrow_up

Parameters help

Name Type
_owner
address help

Properties

Visibility help public
Mutability help transaction
Source Code
    function changeOwnership( address _owner ) onlyOwner {
        
        owner = _owner;
        
    }

setBurner keyboard_arrow_up

Parameters help

Name Type
_burner
address help

Properties

Visibility help public
Mutability help transaction

Requirements help

Source Code
    function setBurner( address _burner ) onlyOwner {
        require ( !burnerSet );
        burner = _burner;
        burnerSet = true;
        
    }

burnDragons keyboard_arrow_up

Parameters help

Name Type
_amount
uint256 help

Properties

Visibility help public
Mutability help transaction
Source Code
    function burnDragons ( uint256 _amount ) onlyBurner{
        
        
        burn( _amount );
        
        
    }

getAccountCount keyboard_arrow_up

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help constant
Source Code
    function getAccountCount() constant returns(uint256) {

        return accountCount;
    }

getAddress keyboard_arrow_up

Parameters help

Name Type
slot
uint256 help

Properties

Visibility help public
Mutability help constant
Source Code
    function getAddress(uint256 slot) constant returns(address) {

        return accountIndex[slot];

    }

approveAndCall keyboard_arrow_up

Parameters help

Name Type
_spender
address help
_value
uint256 help
_extraData
bytes help

Properties

Visibility help public
Mutability help transaction
Source Code
    function approveAndCall(address _spender, uint256 _value, bytes _extraData)
    returns(bool success) {
        tokenRecipient spender = tokenRecipient(_spender);
        if (approve(_spender, _value)) {
            spender.receiveApproval(msg.sender, _value, this, _extraData);
            return true;
        }
    }

burn keyboard_arrow_up

Parameters help

Name Type
_value
uint256 help

Properties

Visibility help public
Mutability help transaction
Source Code
    function burn(uint256 _value) returns(bool success) {
        if (balanceOf[msg.sender] < _value) throw; 
        if( totalSupply -  _value < 2100000000000000) throw;
        balanceOf[msg.sender] -= _value; 
        totalSupply -= _value; 
        Burn(msg.sender, _value);
        return true;
    }

burnFrom keyboard_arrow_up

Parameters help

Name Type
_from
address help
_value
uint256 help

Properties

Visibility help public
Mutability help transaction

Requirements help

Source Code
    function burnFrom(address _from, uint256 _value) returns(bool success) {
        
        if( totalSupply -  _value < 2100000000000000) throw;
        if (balanceOf[_from] < _value) throw; 
        if (_value > allowance[_from][msg.sender]) throw; 
        balanceOf[_from] -= _value; 
        allowance[_from][msg.sender] -= _value; 
        totalSupply -= _value; 
        Burn(_from, _value);
        return true;
    }