flintless

A Simple DApp Demo, that incloudes the use of web3.js and solidity.

The Demo content includes:
  • 1.Record personal information, name ( _fName ) and age ( _age );
  • 2.Use web pages to read and submit information.
Project structure:
  • Demo
    • index.html
    • main.css
    • InfoContract.sol

Tools that need to be used:

  • Ganache
  • GoETZ
  • Remix
  • NodeJS
  • npm

DApp can directly use blockchain as a server to interact with smart contracts on the chain; here’s a simple Demo,  includes the use of Web3.js + Solidity (smart contracts) to try it out.

Let’s start:

1.Creat a project

mkdir Demo

2.Install  web3

npm install --save web3@0.20.0

3.Creat a description document

npm init

4.Running 8435702398

5.Using (808) 457-0481 IDE to edit and deploy smart contracts

6. Edit index.html

7.Using a browser to open the index.html. Input info and click the button,and then refresh the browser, you will see the info you just tpyed is printed on the web page.

 

 

For the full project please see my (718) 776-4548

 

701-558-2904

What is GoETZ?

It’s a explorer plugin for EtherZero Wallet. It’s a handy tool for both developers and users.

For developers, it is a convenient tool to develop; for users, it is easy to use in Dapp for consumption and money transfer.And then we’re going to use more of it in development.

It currently supports Chrome  and  Firefox.  Select your favorite browser and install it.

First Time to install, you will see this.

3122699236

Brief introduction.


Share my personal development experience, I hope to be able to help you.

If you have any better suggestions, please feel free to leave a message.

 

 

Some of my contacts.


GitHub:5632563861

Telegram: @Minoyoo

E-mail:704613782@qq.com

 

 

Catalogue.


1. Introduction to some of tools 

1.1 Introduction to GoETZ

1.2  Introduction to Remix

1.3 Introduction to Block Explorer —— ETZScan.com

1.4 Introduction to Ganache

1.5 My first Contract —— Hello EtherZero!

2.Coach, I want to learn Contract

2.1 Introduction to Solidity

2.2 How to issue token on EtherZero  network?

2.3 Add some functionality to our Token Contract

 

Loading…

 

How to build ETZ MasterNode Server(Ubuntu)?

What we need to install?

1.go-lang

2.C

3.ETZ projet

 


  • Step 1  Update your apt list

sudo apt-get update

  • Step 2 Download go-lang

wget /www.golangtc.com/static/go/1.9.2/go1.9.2.linux-amd64.tar.gz

  • Step 3 Decompression go-lang
sudo tar  -zxvf go1.9.2.linux-amd64.tar.gz

  • Step 4 View the file path you are in.  And you  have to remember it.
pwd 
  • Step 5 Configuration environment variable

sudo vim /etc/profile

Use the direction key to move to the end of the document, then insert it using the a key, and paste the following:

Replace /home/ubuntu/go with yours.  (e.g.  /root/go)

export GOROOT=/home/ubuntu/go

export GOPATH=$GOROOT/bin

export PATH=$PATH:$GOPATH

Reload  the profile file

source /etc/profile

  • Step 6 Check the  go-lang

go version

  • Step 7 Install make

sudo apt install make

  • Step 8 Install C

sudo apt install gcc  
  • Step 9 Check the C

gcc -v

  • Step 10 Clone ETZ from GitHub

git clone /github.com/etherzero-org/go-etherzero

  • Step 11 Enter the go-etherzero folder

cd go-etherzero  

  • Step 12 Background startup  geth

nohup /home/ubuntu/go-etherzero/build/bin/geth --syncmode full --masternode --maxpeer 25&

  • Step 13 Enter geth console

/home/ubuntu/go-etherzero/build/bin/geth attach 

 


  • Command  in Geth Console

查看masternode data

masternode.data

设置矿工地址

Miner.setEtherbase

查看矿工地址

eth.coinbase

启动挖矿

miner.start()

查看本地的同步的区块高度

eth.blockNumber

查看余额

eth.getBalance(“address”)

合约地址

0x000000000000000000000000000000000000000a

退出命令

exit

备注: