ETH Price: $2,525.10 (+0.16%)

Transaction Decoder

Block:
21630931 at Jan-15-2025 03:59:11 PM +UTC
Transaction Fee:
0.000440623820984655 ETH $1.11
Gas Used:
34,705 Gas / 12.696263391 Gwei

Account State Difference:

  Address   Before After State Difference Code
0x3a3eE61F...7B2061b6d
5.131195792360697225 Eth
Nonce: 242
5.13075516853971257 Eth
Nonce: 243
0.000440623820984655
(Titan Builder)
11.814846690875346895 Eth11.814847103170746895 Eth0.0000004122954
0xf4eCEd2f...eD8fC95DD

Execution Trace

MistCoin.transfer( _to=0x2692E1AC7F3408D899d83d6cDC55fb87a78D8C16, _value=1 )
contract MyToken {
  /* Public variables of the token */
  string public name;
  string public symbol;
  uint8 public decimals;
  /* This creates an array with all balances */
  mapping (address => uint256) public balanceOf;
  /* 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 MyToken(uint256 _supply, string _name, string _symbol, uint8 _decimals) {
    /* if supply not given then generate 1 million of the smallest unit of the token */
    if (_supply == 0) _supply = 1000000;
    /* Unless you add other functions these variables will never change */
    balanceOf[msg.sender] = _supply;
    name = _name; 
    symbol = _symbol;
    /* If you want a divisible token then add the amount of decimals the base unit has */
    decimals = _decimals;
  }
  /* Send coins */
  function transfer(address _to, uint256 _value) {
    /* if the sender doenst have enough balance then stop */
    if (balanceOf[msg.sender] < _value) throw;
    if (balanceOf[_to] + _value < balanceOf[_to]) throw;
    /* Add and subtract new balances */
    balanceOf[msg.sender] -= _value;
    balanceOf[_to] += _value;
    /* Notifiy anyone listening that this transfer took place */
    Transfer(msg.sender, _to, _value);
  }
}