Ethers.js Demo Using Metamask and React.js – 使用Metamask和React.js的Ethers.js演示区块链毕设代写

区块链毕设代写本文提供国外最新区块链项目源码下载,包括solidity,eth,fabric等blockchain区块链,Ethers.js Demo Using Metamask and React.js – 使用Metamask和React.js的Ethers.js演示区块链毕设代写 是一篇很好的国外资料

Ethers.js Demo Using Metamask and React.js

STATUS

Only some of the demo modules from the console version have been integrated so far. I’ll try and do the others soon. Pull requests always welcome :).

  • t1_generateAccounts – completed
  • t2_getBalance – completed
  • t3_transferEth – completed
  • tc1_createFungibleContract – completed
  • tc2_transferTokens – tbc
  • tc3_createNFT – tbc
  • tc4_transferNFT – tbc

Description

This repo contains demo code for interacting with the Ethereum blockchain using the Ethers.js library and Metamask browser plugin.

Pull requests welcome.

Assumed Knowledge:

  • react.js
  • ethereum basics
  • metamask
  • asynchronous javascript

Setup Requirements

  • Metamask browser plugin
  • Node & NPM
  • VS Code (or similar)
  • Terminal window (VS Code inbuilt, powershell, gitbash)
  • Compiler requirements
    • See https://docs.soliditylang.org/en/v0.7.4/installing-solidity.html for further details.
    • Most of these requirements may already be installed already (eg git).

Setup

  1. clone the repo: git clone https://github.com/severalpens/metamaskdemo.git
  2. run npm install to install npm packages
  3. start the app: npm start
  4. visit http://localhost:3000 and open developer tools (f12) to see console.log outputs
  5. To compile contracts, run npm i -g truffle then truffle compile

Tasks/Demos:

  • t1_generateAccounts: Generate new Ethereum Accounts
  • t2_getBalance: Get the balance of an Ethereum Account
  • t3_transferEth: Transfer Eth balance between two Ethereum Accounts
  • tc1_createFungibleContract: Create a new contract using ERC20 spec (Fungible Token)
  • tc2_transferTokens: Transfer tokens between accounts
  • t6_createNFT: Create a new contract using ERC720 spec (Non Fungible Token)
  • tc4_transferNFT: Transfer an NFT between Ethereum Accounts

设置要求

任务/演示:

到目前为止,只集成了控制台版本中的一些演示模块。我会试着尽快做其他的。拉取请求始终受欢迎:)

  • react.js
  • 节点&NPM
  • VS代码(或类似产品)
  • 终端窗口(VS代码内置、powershell、gitbash)
  • 编译器要求请参见https://docs.soliditylang.org/en/v0.7.4/installing-solidity.html 详情请参阅。这些要求中的大多数可能已经安装(例如git)
  • 参见https://docs.soliditylang.org/en/v0.7.4/installing-solidity.html 详情请参阅
  • 这些要求中的大多数可能已经安装(如git)

Description

此repo包含使用Ethers.js库和Metamask浏览器插件与以太坊eth区块链blockchain交互的演示代码

欢迎拉取请求

Assumed Knowledge:

  • 运行npm安装以安装npm软件包
  • 启动应用程序:npm启动
  • 访问http://localhost:3000 并打开开发者工具(f12)查看console.log输出以编译合同,运行npm i-g truffle然后truffle编译生成账户:生成新以太坊eth账户获取余额:获取以太坊eth账户余额转移:在两个以太坊eth账户之间转移以太坊eth账户余额
  • tc2u转让代币:在账户之间转让代币

Setup Requirements

  • t6u createNFT:使用ERC720规范(不可替代代币)创建新合同
  • tc4u转让NFT:在以太坊eth账户之间转让NFT
  • VS Code (or similar)
  • Terminal window (VS Code inbuilt, powershell, gitbash)
  • Compiler requirements
    • See https://docs.soliditylang.org/en/v0.7.4/installing-solidity.html for further details.
    • Most of these requirements may already be installed already (eg git).

Setup

  1. clone the repo: git clone https://github.com/severalpens/metamaskdemo.git
  2. run npm install to install npm packages
  3. start the app: npm start
  4. visit http://localhost:3000 and open developer tools (f12) to see console.log outputs
  5. To compile contracts, run npm i -g truffle then truffle compile

Tasks/Demos:

  • t1_generateAccounts: Generate new Ethereum Accounts
  • t2_getBalance: Get the balance of an Ethereum Account
  • t3_transferEth: Transfer Eth balance between two Ethereum Accounts
  • tc1_createFungibleContract: Create a new contract using ERC20 spec (Fungible Token)
  • tc2_transferTokens: Transfer tokens between accounts
  • t6_createNFT: Create a new contract using ERC720 spec (Non Fungible Token)
  • tc4_transferNFT: Transfer an NFT between Ethereum Accounts

部分转自网络,侵权联系删除区块链源码网

www.interchains.cc

https://www.interchains.cc/24668.html

区块链毕设网(www.interchains.cc)全网最靠谱的原创区块链毕设代做网站 部分资料来自网络,侵权联系删除! 最全最大的区块链源码站 ! QQ3039046426
区块链知识分享网, 以太坊dapp资源网, 区块链教程, fabric教程下载, 区块链书籍下载, 区块链资料下载, 区块链视频教程下载, 区块链基础教程, 区块链入门教程, 区块链资源 » Ethers.js Demo Using Metamask and React.js – 使用Metamask和React.js的Ethers.js演示区块链毕设代写

提供最优质的资源集合

立即查看 了解详情