This post is from a low-reputation account and contains an unverified outbound link. Be cautious before clicking external links.

How to create a contract on Ethereum and Html/JS client

Words
128
Reading
1 min
Listen
Play
9y

Ethereum logo

Hello!

I will demonstrate quickly and directly how to create a contract and your Javascript client in Ethereum's Blockchain!

First let's install the Ethereum Geth client (https://github.com/ethereum/go-ethereum).

To do this in Linux run the following command:

sudo apt-get install software-properties-common
sudo add-apt-repository -y ppa:ethereum/ethereum
sudo apt-get update
sudo apt-get install ethereum

Instantiate your node in development mode and accessing the console:

geth --dev --ipcpath ~/.ethereum/geth_test.ipc console --rpc --rpccorsdomain "http://localhost,http://ethereum.github.io" --rpcapi="db,eth,net,web3,personal"

Create the master account in the ethereum console

personal.newAccount()

Minimize a little to generate the money needed to make the deploy:

miner.start()

Stop mining

wait a few seconds and you can stop on the console itself:

miner.stop()

Deploy the contract using the remix (http://ethereum.github.io/browser-solidity)

Good! I am learning to configure this blog, if you want me to conclude this article please comment, that I will detail and improve this post with details and who knows even a video !!!!

How to create a contract on Ethereum and Html/JS client | Ecency