Transaction Hash:
Block:
7237617 at Feb-18-2019 09:21:34 PM +UTC
Transaction Fee:
0.000242975966762375 ETH
$0.57
Gas Used:
21,461 Gas / 11.321744875 Gwei
Emitted Events:
| 3 |
CanYaCoin.Transfer( from=[Sender] 0xf16f0a13a20b1eed9aef167c2fa6116317a3e165, to=0x6F13b8DD7b05544e2107d42C8bB2d5a332EE8E12, value=8454085402 )
|
Account State Difference:
| Address | Before | After | State Difference | ||
|---|---|---|---|---|---|
| 0x1d462414...4bF8CD7c0 | |||||
|
0xEA674fdD...16B898ec8
Miner
| (Ethermine) | 445.746404589821039718 Eth | 445.746647565787802093 Eth | 0.000242975966762375 | |
| 0xF16F0a13...317A3e165 |
1.35027006334505776 Eth
Nonce: 5757
|
1.350027087378295385 Eth
Nonce: 5758
| 0.000242975966762375 |
Execution Trace
CanYaCoin.transfer( _to=0x6F13b8DD7b05544e2107d42C8bB2d5a332EE8E12, _value=8454085402 ) => ( True )
transfer[CanYaCoin (ln:65)]
Transfer[CanYaCoin (ln:69)]
/**
* CanYaCoin (CAN) contract (FINAL)
*/
pragma solidity 0.4.15;
contract ERC20TokenInterface {
/// @return The total amount of tokens
function totalSupply() constant returns (uint256 supply);
/// @param _owner The address from which the balance will be retrieved
/// @return The balance
function balanceOf(address _owner) constant public returns (uint256 balance);
/// @notice send `_value` token to `_to` from `msg.sender`
/// @param _to The address of the recipient
/// @param _value The amount of token to be transferred
/// @return Whether the transfer was successful or not
function transfer(address _to, uint256 _value) public returns (bool success);
/// @notice send `_value` token to `_to` from `_from` on the condition it is approved by `_from`
/// @param _from The address of the sender
/// @param _to The address of the recipient
/// @param _value The amount of token to be transferred
/// @return Whether the transfer was successful or not
function transferFrom(address _from, address _to, uint256 _value) public returns (bool success);
/// @notice `msg.sender` approves `_spender` to spend `_value` tokens
/// @param _spender The address of the account able to transfer the tokens
/// @param _value The amount of tokens to be approved for transfer
/// @return Whether the approval was successful or not
function approve(address _spender, uint256 _value) public returns (bool success);
/// @param _owner The address of the account owning tokens
/// @param _spender The address of the account able to transfer the tokens
/// @return Amount of remaining tokens allowed to spent
function allowance(address _owner, address _spender) constant public returns (uint256 remaining);
event Transfer(address indexed from, address indexed to, uint256 value);
event Approval(address indexed owner, address indexed spender, uint256 value);
}
contract CanYaCoin is ERC20TokenInterface {
string public constant name = "CanYaCoin";
string public constant symbol = "CAN";
uint256 public constant decimals = 6;
uint256 public constant totalTokens = 100000000 * (10 ** decimals);
mapping (address => uint256) public balances;
mapping (address => mapping (address => uint256)) public allowed;
function CanYaCoin() {
balances[msg.sender] = totalTokens;
}
function totalSupply() constant returns (uint256) {
return totalTokens;
}
function transfer(address _to, uint256 _value) public returns (bool) {
if (balances[msg.sender] >= _value) {
balances[msg.sender] -= _value;
balances[_to] += _value;
Transfer(msg.sender, _to, _value);
return true;
}
return false;
}
function transferFrom(address _from, address _to, uint256 _value) public returns (bool) {
if (balances[_from] >= _value && allowed[_from][msg.sender] >= _value) {
balances[_from] -= _value;
allowed[_from][msg.sender] -= _value;
balances[_to] += _value;
Transfer(_from, _to, _value);
return true;
}
return false;
}
function balanceOf(address _owner) constant public returns (uint256) {
return balances[_owner];
}
function approve(address _spender, uint256 _value) public returns (bool) {
allowed[msg.sender][_spender] = _value;
Approval(msg.sender, _spender, _value);
return true;
}
function allowance(address _owner, address _spender) constant public returns (uint256 remaining) {
return allowed[_owner][_spender];
}
}