基于区块链的毕业设计Get started – 开始

本文提供基于区块链的毕业设计国外最新区块链项目源码下载,包括solidity,eth,fabric等blockchain区块链,基于区块链的毕业设计Get started – 开始 是一篇很好的国外资料

Get started

  1. Clone the repo and cd into it git clone https://github.com/symfoni/hardhat-react-boilerplate.git MyProject && cd MyProject
  2. Install deps with yarn yarn or npm npm install
  3. Start hardhat npx hardhat node --watch

Get started - 开始

It runs up a Hardhat node, compile contracts, generates typescript interfaces, creates React context and instantiates your contract instances and factories with frontend provider. 
  1. Open up a new terminal
  2. cd frontend
  3. Install deps with yarn yarn or npm npm install
  4. Import seed phrase in Metamask. The default mnemonic currently used by hardhat is test test test test test test test test test test test junk
  5. Ensure Metamask RPC is set to http://localhost:8545 and chainID 31337.
  6. Start React app with yarn yarn start or npm npm start. The frontend should start up at http://localhost:3000/.

Because of this default hardhat.config.ts it will first try to connect with an injected provider like Metamask (web3modal package does this).

If nothing found it will try to connect with your hardhat node. On localhost and hardhat nodes it will inject your mnemonic into the frontend so you have a “browser wallet” that can both call and send transactions. NB! Dont ever put a mnemonic with actual value here. We will limit this feature going forward so its more explicit.

const config: HardhatUserConfig = {   react: {     providerPriority: ["web3modal", "hardhat"],   }, };

Ensure you are useing RPC to http://localhost:8545.

You may also need to set the chainID to 31337 if you are useing Hardhat blockchain development node.

Invalid nonce.

eth_sendRawTransaction   Invalid nonce. Expected X but got X.

Reset your account in Metamask.

We ❤️ these Ethereum projects:

  • Hardhat 👷
  • Hardhat-deploy 🤘
  • Typechain 🔌
  • hardhat-typechain 🧙‍♀️
  • ethers.js v5 ⺦
  • web3modal 💸
  • ts-morph 🏊‍♂️
  • @symfoni/hardhat-react 🎻(our own)

开始

  1. 将repo和cd克隆到it git克隆中https://github.com/symfoni/hardhat-react-boilerplate.gitMyProject&cd MyProject
  2. 用纱线安装DEP或npm npm安装
  3. 启动hardhat npx hardhat节点–观看

因为这个默认值安全帽.config.ts它将首先尝试连接一个注入的提供者,比如Metamask(web3modal包可以做到这一点)。

It runs up a Hardhat node, compile contracts, generates typescript interfaces, creates React context and instantiates your contract instances and factories with frontend provider. 
  1. 打开新终端
  2. cd前端
  3. 用纱线或npm安装deps npm安装
  4. 在Metamask中导入种子短语。hardhat当前使用的默认助记符是test junk
  5. 确保Metamask RPC设置为http://localhost:8545和链ID 31337。
  6. 开始用纱线开始或npm npm开始反应应用程序。前端应该在http://localhost:3000/.

如果找不到任何内容,它将尝试连接到您的安全帽节点。在localhost和hardhat节点上,它将把你的助记符注入前端,这样你就有了一个“浏览器钱包”,既可以打电话也可以发送交易。注意!千万不要在这里放一个有实际价值的助记符。我们将进一步限制此功能,使其更加明确。

确保使用RPChttp://localhost:8545.

const config: HardhatUserConfig = {   react: {     providerPriority: ["web3modal", "hardhat"],   }, };

如果您使用的是Hardhat区块链blockchain开发节点,则可能还需要将chainID设置为31337。

在元掩码中重置帐户。

无效的nonce。

eth_sendRawTransaction   Invalid nonce. Expected X but got X.

Reset your account in Metamask.

我们❤️ 这些以太坊eth项目:

  • 安全帽👷
  • 安全帽部署🤘
  • 类型链🔌
  • 安全帽类型链🧙‍♀️
  • 以太.jsv5⺦
  • 网络3模式💸
  • 变形🏊‍♂️
  • @symfoni/hardhat反应🎻(我们自己的)

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

www.interchains.cc

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

区块链毕设网(www.interchains.cc)全网最靠谱的原创区块链毕设代做网站 部分资料来自网络,侵权联系删除! 最全最大的区块链源码站 ! QQ3039046426
区块链知识分享网, 以太坊dapp资源网, 区块链教程, fabric教程下载, 区块链书籍下载, 区块链资料下载, 区块链视频教程下载, 区块链基础教程, 区块链入门教程, 区块链资源 » 基于区块链的毕业设计Get started – 开始

提供最优质的资源集合

立即查看 了解详情