IC3 Ethereum/Cornell Bootcamp: Getting Started with Ethereum and Solidity
Requirements:
- Google Chrome
- Github Account
- Metamask (do not install before the bootcamp unless you have worked with Ethereum before)
What are things?
Ethereum
Ethereum is an open-source, public, blockchain-based distributed computing platform featuring smart contract (scripting) functionality.
Metamask
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
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
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
rinkeby-account
. - 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:
0x8F555E28F70AF161e811e95Fc1e56B5356601E15
- 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:
https://gist.github.com/Souptacular/f9c074b001a51effe0404d957be5498a
- 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. Writing your first smart contract.
- Go to the Remix website.
- Open another browser tab with the sample Solidity code we will be working with. You can find it here: https://raw.githubusercontent.com/Souptacular/souptacular.github.io/master/training/solidity/SimpleStore.sol.
- We will walk through the rest of the steps in class.