This blockchain example creates an Ethereum-based Smart Contract which accepts Ether and divides it evenly among a hypothetical group of employees. This would allow a Human Resources department to pay employees quickly and efficiently.
First thing to make sure of is that both Ganache and MetaMask are running on your computer, and that your MetaMask is connected to your localhost.
This Solidity code was compiled in the Remix IDE:
Now, we are ready to deploy the contract to our local Ganache chain by connecting to the Injected Web3 environment. The "Account" is my first address listed in Ganache - the 3 addresses listed under "Deploy" are the next 3 addresses listed in my Ganache:
Then, deploy your contract:
After you send those transactions, you should notice that your MetaMask ETH balance declined:
You should also see the balances in your Ganache chain increase as well, depending on how much wei/Ether was sent. In this particular example, only 101 wei was transferred (there is 10^18 wei in 1 Ether) so my accounts that received those transactions did not increase in ETH - however, we can confirm these transactions went through by navigating to the "Transactions" tab of Ganache:
First, use a Kovan Faucet (https://faucet.kovan.network/) to fund your Testnet account (the first address listed in Ganache, the same one that should be connected to your MetaMask account). My Kovan Testnet address is 0x6942f2BDfe5057B7A609307C229559F4C99ecCa2. Navigate to the Remix IDE, go to the MetaMask extension, and now instead of connecting to your localhost, connect to the Kovan Test Network - you should see some ETH in there as a result of funding it with the faucet. Repeat the steps we performed in the above gif: deploy the contract to your local Ganache chain, and copy/keep a note of the contract's deployed address. The transaction will also be in your MetaMask history, and on the blockchain permanently to explore later: