Web3js

Getting Start

TonyQ

我們今天
不講

不要問我

哪個幣
會漲

很重要

所以要
放三頁

什麼是區塊鏈?

source
 

EVM 

Ethereum Virtual Machine

more detail

我們今天只講這個

申請 metamask

認清楚網址 

輸入密碼

不要讓別人知道

記錄註記詞
一定要收好

切 Test Net

這樣測試環境
帳號就開好了

你的第一個 ETH 地址, 點擊可複製


來寫第一個 web3 程式

為了簡單,
我們使用 jsfiddle 操作

add web3.js

metamask 

var web3 = new Web3(window.ethereum)
  const accounts = await web3.eth.requestAccounts();

  const balance = await web3.eth.getBalance(accounts[0])

 

// 1 eth = 10^18 wei

來加點餘額吧!

來試試進一步的

mint 一個合約

0x8D6E4083A0E8925C43FEC3f1A8d6d5EB5Eb48B4e

ABI

不要問我
NFT 有沒有

價值

EVM 的合約

只是龐大生態的一部分

還有 sol / tezos / ftm / near ...etc 

Web3 Getting Start

By TonyQ Wang

Web3 Getting Start

  • 1,761