Sunday, 17 September 2017

[BlockChain] Get your first ETH on testnet

What you will need 


1. The Chrome web browser - Download here
2. The Metamask Chrome extension - Download here
Metamask allows you to sign Ethereum transactions without running a full Geth node.

 Key Terms 

ETH

ETH is the main currency on the Ethereum network. However, Ethereum can support multiple currencies and ETH eventually will not have privileged status.

Gas

Executing transactions on Ethereum either runs computations or stores data. This Costs the network CPU cycles or storage space. That cost is paid for by the account that initiates the transaction. The payment is called "gas". Gas is currently paid using ETH. At the time of writing this, 1 GAS = 0.00001 ETH.

Setting up Metamask 

To easily deploy contracts to Morden, we will need Metamask. First install Metamask if you haven't already here.



In the top right corner of Chrome you should now see the cute Metamask fox 
Click on the icon and let's start creating your Ethereum wallet!



Agree to the terms of service.  You have to scroll it to the bottom first so as to enable the accept button.  


Be careful !!  We are in Main Ethereum Network. We just want to do development so we have to change it to testnet (Ropsten Test Net) first 。
In the top left corner of Chrome, you can see "Main Network". Click on that and then choose "Ropsten Test Net"。





Now you can input a password. Note: If you want to use this account for anything of value, use a unique randomly generated password stored in a password manager like 123Password or LastPass123.
                                         
Before uploading our contract, we will get a little extra ETH just in case. To do this, click "BUY".


Click "ROPSTEN TEST FAUCET" button


You will be taken to the MetaMask ether faucet where you can click "request 1 ether" and it should send it to your account. You can click the transaction number under the bottom. It will redirect to etherscan website. 

https://ropsten.etherscan.io


You will see the progress bar is running. When it done, you can  go to see your METAMASK again. 



Congratulations!! You got your first ETH. 




 Time to write our first contract!
First, go to the below website and write your first smart contract. 

https://ethereum.github.io/browser-solidity


No comments:

Post a Comment

how-to-recursively-create-subfolder-in-each-folder-of-a-directory-in-cmd

test.cmd: @echo off setlocal for /f "usebackq tokens=*" %%a in (`dir /b /a:d`) do ( rem enter the directory pushd %%a echo...