Ethereum represents one of the most interesting technological developments in the past few-years, taking the fundamental p Rinciples of a blockchain, and allowing executable "contracts" to be written. These contracts can is relatively simple but also incredibly powerful.
This post'll walk you through setting up a development environment so can deploy and test your smart own CTS on the Ethereum test blockchain ("Ropsten"). Installing Parity
Parity is a fast ethereum browser, a tool which allows you to interact with the blockchain. On I laptop at least, it's significantly faster to synchronise and use than Geth, which is probably the "standard" tool For interacting with the Ethereum blockchain.
To install for your platform, follow the instructions on the Parity site. If you use Mac OS X or Ubuntu, this is as simple as running the following command:
Bash < (Curl https://get.parity.io-Lk)
connecting to the Ropsten testnet
To run Parity and connect to the Testnet, use the following command:
Parity-chain=ropsten
You ll have a stream of stuff fly by in the terminal as Parity connects to the Testnet, and starts the process of Synchroni Sing the blockchain. This might take a while...but rest assured it's much faster than using the Ethereum app.
You can still get started using the Parity through its lovely web interface. Setting up Parity
Parity comes with a really nice, fully featured web interface. This is allows to view and create wallets (where you keep your ether), interact with other apps and to create or interact With contracts.
By default, the parity Web interface should is available at http://127.0.0.1:8180 the Parity web interface
When you launch the Web interface, it'll guide you through creating a wallet. Use a strong password, but remember as this is on the testnet, the ether your collect here aren ' t anywhere near as valuable As "real" ether. Get some testnet ether
To deploy and interact with a Contract on the blockchain (testnet or otherwise) you ll need some. Getting ether on the testnet are a little easier than on the main blockchain, and there are a couple of options:try and fi nd a working testnet faucet-you ' ll enter your wallet address and (hopefully) receive some ether ask nicely in the EThere Um gitter chat Set up Ethminer to mine for some ether
After a bit of time trying the "two" options, I resolved to mine my own ether, and it wasn ' t too. Setting up Ethminer
Ethminer is a separate tool which talks to the blockchain via Parity with the aim of validating the transactions that OCCU R. As a reward for validating the transactions, you'll occasionally receive some ether. It ' s not super quick to receive the ether, but it's pretty quick to setup, so I just left it for a few hours and came back To almost ether in my wallet. Woohoo!
To install in Ubuntu:
sudo add-apt-repository ppa:ethereum/ethereum
sudo apt-get update
sudo apt-get install Ethereum ethminer
Now, the to get everything hooked up and you'll need to run a slightly modified Parity command. The wallet address of the the the Web interface. Now restart parity using the following:
Parity-chain=ropsten--rpc--author=<your_wallet_address>
Now in a new terminal window start Ethminer:
Ethminer-g
NOTE:THE-G option enables GPU mining, which speeds it up. However, this does assume your have a suitable card and have set up your using the appropriate graphics card drivers etc F it doesn ' t work, try again without the-g. Ethminer doing some mining
Again, you'll have a wall of stuff stream Past-this is Ethminer starting to does its business. I left it for a few hours and came back to some ether. writing a contract
Once you have some ether, can stop mining and start writing!
Parity has a built in contract development tool, which are pretty nice. Make sure you can-it by going the the Parity Web interface and ensuring it are enabled. Parity settings
Now you can go to the Contracts tab, hit the Develop button and you ' re ready to go! Developing an example Smart contract
As for what to write, which is for another article. You can get started with your own cryptocurrency and learning more about solidity, one of the languages used to programme Smart contracts. But you now have the tools and some ether!
Original address: https://medium.com/@joshua_e_k/setting-up-ethereum-smart-contract-development-using-parity-on-ubuntu-abca4da3dce2