Skip to main content
100%

Gist 66a9908ada6981db682304b6f9bc6257

✓ Published0🌍 Public
Aackuser
Last edited Feb 2, 2018
Created on Feb 2, 2018

This example demonstrates a simple token transfer system on the Ethereum blockchain, showing how balances are updated between sender and receiver addresses. The Solidity contract defines a `MyCoins` token with an initial balance of 1,000,000 coins assigned to an owner, and the `tranferCoins` function checks that the sender has sufficient funds before deducting and adding amounts. The code uses a `mapping(address => uint)` data structure to store balances, with no external libraries or visualization APIs—it is purely a smart contract logic demonstration.

AI-generated description

Similar vizzes