EthWaterloo 2017 Hackathon - Intro to Solidity and Remix
Sites and Tools I Mentioned During My Talk
- Google Chrome
- Github Account
- Metamask (do not install before the bootcamp unless you have worked with Ethereum before)
What are things?
Ethereum is an open-source, public, blockchain-based distributed computing platform featuring smart contract (scripting) functionality.
MetaMask is a bridge between Google Chrome and the Ethereum blockchain. It allows you to run Ethereum Dapps in your browser without running a full Ethereum node. MetaMask includes a secure identity vault, providing a user interface to manage your identities on different sites and sign blockchain transactions.
Solidity is a programming language used to code smart contracts that are compatible with Ethereum. The documentation for Solidity is located here. We will be using Remix when developing our smart contracts. Remix is an online development environment that allows you to code, deploy, and test smart contracts on the public Ethereum networks and test Ethereum networks.
Rinkeby is a public Ethereum test network that is used to deploy and test smart contracts for free. In order to receive Rinkeby ether coins, you will need to visit https://www.rinkeby.io/ once you have your Metamask client installed.
Coding your first smart contract!
a. Setting up Metamask
- Install the Metamask Chrome plugin.
- Open Metamask (there should be an orange fox icon in your browser toolbar).
- Click through the license agreements.
- Create a new “den” which will house your Ethereum account.
- COPY THE 12 WORDS SOMEWHERE SAFE.
- Click the network selection button on the top left part of the Metmask app. It should say “Ethereum Mainnet” or “Ropsten”. Change that to Rinkeby.
- Copy your Ethereum account address by clicking the “Copy” icon above the “Buy” and “Send” buttons. Mouse over the icons to reveal their label.
b. Get Rinkeby Testnet Ether
- Login into your Github account.
- Visit the Github Gists website.
- In the “Description” and “Filename” box put
- Paste your Ethereum address you copied in step a.7 into the content box under the filename. The Ethereum address should be a jumble of letters and numbers like this:
- Click “Create Secret Gist”.
- Copy the URL of the Gist. It should be in your URL bar at the top of the browser and look similar to this:
- Visit the Rinkeby website and click “Crypto Faucet”.
- Paste your Gist URL in the box provided and click “Give me Ether - 3 ethers/8 hours”.
- A box should pop up with with your Github icon indicating that your request for testnet ether is being processed.
- Wait 10 seconds.
- Look at your Metamask client and verify that you received 3 Rinkeby testnet ether.
c. I can’t get Rinkeby ether because the faucet hates me.
- Get Ropsten ether instead.
- Use one of the following Ropsten testnet faucets and enter your Ethereum address. a. http://faucet.ropsten.be:3001/ b. https://faucet.metamask.io/ c. Ask me in Slack. Channel is #testnet.
- Wait 10 seconds.
- Look at your Metamask client and verify that you received Ropsten testnet ether.
d. Writing your first smart contract.