MetaCoin
Transfer
ddf252ad
inputs | 0 | address | _from | |
1 | address | _to | ||
2 | uint256 | _value |
getBalance
f8b2cb4f
Returns MetaCoin balance for a given address
inputs | 0 | address | addr | Queried address |
outputs | 0 | uint256 | value | Token balance of account |
getBalanceInEth
7bd703e8
Returns equivalent Ether balance for a given address
Uses the ConvertLib.sol
library for conversions
inputs | 0 | address | addr | Queried address |
outputs | 0 | uint256 | value | Ether equivalent balance of account |
sendCoin
90b98a11
Transfer coins from sender to receiver
This is just a simple example of a coin-like contract. It is not standards compatible and cannot be expected to talk to other coin/token contracts. If you want to create a standards-compliant token, see: ConsenSys/Tokens. Cheers!
inputs | 0 | address | receiver | Address of the receipient |
1 | uint256 | amount | Amount of tokens to send | |
outputs | 0 | bool | sufficient | Transfer is succesful |